forked from akai/readest
fix: avoid hydration mismatch for tauri app (#2884)
This commit is contained in:
@@ -41,7 +41,10 @@ export const viewport = {
|
||||
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang='en'>
|
||||
<html
|
||||
lang='en'
|
||||
className={process.env['NEXT_PUBLIC_APP_PLATFORM'] === 'tauri' ? 'edge-to-edge' : ''}
|
||||
>
|
||||
<head>
|
||||
<title>{title}</title>
|
||||
<meta
|
||||
|
||||
Reference in New Issue
Block a user