diff options
Diffstat (limited to 'src/webview/darkmode.ts')
-rw-r--r-- | src/webview/darkmode.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/darkmode.ts b/src/webview/darkmode.ts index 9944a7afa..f5e8700e0 100644 --- a/src/webview/darkmode.ts +++ b/src/webview/darkmode.ts | |||
@@ -5,7 +5,7 @@ const debug = require('../preload-safe-debug')('Ferdium:DarkMode'); | |||
5 | 5 | ||
6 | const chars = [...'abcdefghijklmnopqrstuvwxyz']; | 6 | const chars = [...'abcdefghijklmnopqrstuvwxyz']; |
7 | 7 | ||
8 | const ID = [...Array.from({ length: 20 })] | 8 | const ID = Array.from({ length: 20 }) |
9 | .map(() => chars[Math.trunc(Math.random() * chars.length)]) | 9 | .map(() => chars[Math.trunc(Math.random() * chars.length)]) |
10 | .join(''); | 10 | .join(''); |
11 | 11 | ||
@@ -26,7 +26,7 @@ export function injectDarkModeStyle(recipePath: string) { | |||
26 | styles.innerHTML = data.toString(); | 26 | styles.innerHTML = data.toString(); |
27 | debug('Loaded darkmode.css from: ', darkmodeCss); | 27 | debug('Loaded darkmode.css from: ', darkmodeCss); |
28 | 28 | ||
29 | document.querySelector('head')?.appendChild(styles); | 29 | document.querySelector('head')?.append(styles); |
30 | 30 | ||
31 | debug('Injected Dark Mode style with ID', ID); | 31 | debug('Injected Dark Mode style with ID', ID); |
32 | } | 32 | } |