From 57d42981a17cf7cf0cd8e3700de9a6f59219c92f Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 1 Feb 2023 12:41:35 +0530 Subject: Added debug stmts when loading 'user.css' and 'darkmode.css' --- src/webview/darkmode.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/webview/darkmode.ts') diff --git a/src/webview/darkmode.ts b/src/webview/darkmode.ts index 34f987b51..9944a7afa 100644 --- a/src/webview/darkmode.ts +++ b/src/webview/darkmode.ts @@ -19,10 +19,12 @@ export function darkModeStyleExists(recipePath: string) { export function injectDarkModeStyle(recipePath: string) { if (darkModeStyleExists(recipePath)) { - const data = readFileSync(darkModeFilePath(recipePath)); + const darkmodeCss = darkModeFilePath(recipePath); + const data = readFileSync(darkmodeCss); const styles = document.createElement('style'); styles.id = ID; styles.innerHTML = data.toString(); + debug('Loaded darkmode.css from: ', darkmodeCss); document.querySelector('head')?.appendChild(styles); -- cgit v1.2.3-70-g09d2