@samitouri / QOSami-HFS / commits / 21a756e3

solved quick white flash while loading

Massimo Melina committed Oct 11, 2024 at 11:08 UTC 21a756e3cc8f59b414cd3a577778ea9014c745a6
2 files changed +2 -2
admin/index.html
+1 -1
@@ -9,9 +9,9 @@
9 <link rel="icon" type="image/svg+xml" href="/hfs-logo-icon.svg" />
10 <link href="../frontend/fontello.css" rel="stylesheet" />
11 <link href="../frontend/fontello.woff2" rel="prefetch" />
12 - <style>@media (prefers-color-scheme: dark) { body { background-color: #000; color: #888; } }</style>
12 </head>
13 <body>
14 + <style>@media (prefers-color-scheme: dark) { body { background-color: #000; color: #888; } }</style>
15 <div id="root"></div>
16 <script nomodule>document.getElementById('root').innerText = "Please use a newer browser"</script>
17 </body>
frontend/index.html
+1 -1
@@ -5,9 +5,9 @@
5 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0" />
6 <link href="/fontello.css" rel="stylesheet" />
7 <script type="module" src="/src/index.ts"></script>
8 - <style>@media (prefers-color-scheme: dark) { body { background-color: #000; color: #888; } }</style>
8 </head>
9 <body>
10 + <style>@media (prefers-color-scheme: dark) { body { background-color: #000; color: #888; } }</style>
11 <div id="root">Wait for loading or <a href="?get=basic">use basic interface now</a></div>
12 </body>
13 </html>