summaryrefslogtreecommitdiffstats
path: root/src/webview/darkmode.ts
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2023-05-24 06:57:50 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2023-05-24 16:40:43 +0530
commite245b4fa229bee1e2ab97fcb42de3831b8bdbe5b (patch)
treed684777b3fde5470c9f99304a9f022422ffb8045 /src/webview/darkmode.ts
parent6.3.0-nightly.9 [skip ci] (diff)
downloadferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.gz
ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.zst
ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.zip
Upgrade npm modules
Diffstat (limited to 'src/webview/darkmode.ts')
-rw-r--r--src/webview/darkmode.ts4
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
6const chars = [...'abcdefghijklmnopqrstuvwxyz']; 6const chars = [...'abcdefghijklmnopqrstuvwxyz'];
7 7
8const ID = [...Array.from({ length: 20 })] 8const 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 }