fix: (regression beta) avoid style compatibilities
Massimo Melina committed
Nov 9, 2024 at 09:29 UTC
a1881aa7c57c084ba455a3d59ea25de6b7be86a7
3 files changed
+4
-2
admin/index.html
+1
-1
@@ -11,7 +11,7 @@
11
<link href="../frontend/fontello.woff2" rel="prefetch" />
12
</head>
13
<body>
14
- <style>@media (prefers-color-scheme: dark) { html { background-color: #000; color: #888; } }</style>
14
+ <style class="removeAtBoot">@media (prefers-color-scheme: dark) { html { 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
@@ -7,7 +7,7 @@
7
<script type="module" src="/src/index.ts"></script>
8
</head>
9
<body>
10
- <style>@media (prefers-color-scheme: dark) { html { background-color: #000; color: #888; } }</style>
10
+ <style class="removeAtBoot">@media (prefers-color-scheme: dark) { html { 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>
shared/index.ts
+2
@@ -12,6 +12,8 @@ export * from '../src/cross'
12
13
;(window as any)._ = _
14
15
+document.querySelectorAll('.removeAtBoot').forEach(e => e.remove())
16
+
17
// roughly 0.7 on m1 max
18
export const cpuSpeedIndex = (() => {
19
let ms = performance.now()