From e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 24 May 2023 06:57:50 +0530 Subject: Upgrade npm modules --- src/webview/darkmode.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/webview/darkmode.ts') 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'); const chars = [...'abcdefghijklmnopqrstuvwxyz']; -const ID = [...Array.from({ length: 20 })] +const ID = Array.from({ length: 20 }) .map(() => chars[Math.trunc(Math.random() * chars.length)]) .join(''); @@ -26,7 +26,7 @@ export function injectDarkModeStyle(recipePath: string) { styles.innerHTML = data.toString(); debug('Loaded darkmode.css from: ', darkmodeCss); - document.querySelector('head')?.appendChild(styles); + document.querySelector('head')?.append(styles); debug('Injected Dark Mode style with ID', ID); } -- cgit v1.2.3-70-g09d2