diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2022-04-22 15:04:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 20:04:21 +0000 |
commit | 759d93dc198a3cc8c5265245c0144efa5435682b (patch) | |
tree | 53e963a085d3d12af5a2efa2f1ab6f3e5574edc7 /src/webview/darkmode.ts | |
parent | Added build scripts for linux, macos and windows to help new contributors get... (diff) | |
download | ferdium-app-759d93dc198a3cc8c5265245c0144efa5435682b.tar.gz ferdium-app-759d93dc198a3cc8c5265245c0144efa5435682b.tar.zst ferdium-app-759d93dc198a3cc8c5265245c0144efa5435682b.zip |
Turn off usage of 'debug' npm package using with electron-16 (fixes #17)
Diffstat (limited to 'src/webview/darkmode.ts')
-rw-r--r-- | src/webview/darkmode.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/webview/darkmode.ts b/src/webview/darkmode.ts index fbb0edf04..99ee68757 100644 --- a/src/webview/darkmode.ts +++ b/src/webview/darkmode.ts | |||
@@ -1,7 +1,8 @@ | |||
1 | import { join } from 'path'; | 1 | import { join } from 'path'; |
2 | import { pathExistsSync, readFileSync } from 'fs-extra'; | 2 | import { pathExistsSync, readFileSync } from 'fs-extra'; |
3 | 3 | ||
4 | const debug = require('debug')('Ferdium:DarkMode'); | 4 | // TODO: Go back to 'debug' from 'console.log' when https://github.com/electron/electron/issues/31689 is fixed |
5 | // const debug = require('debug')('Ferdium:DarkMode'); | ||
5 | 6 | ||
6 | const chars = [...'abcdefghijklmnopqrstuvwxyz']; | 7 | const chars = [...'abcdefghijklmnopqrstuvwxyz']; |
7 | 8 | ||
@@ -26,7 +27,7 @@ export function injectDarkModeStyle(recipePath: string) { | |||
26 | 27 | ||
27 | document.querySelector('head')?.appendChild(styles); | 28 | document.querySelector('head')?.appendChild(styles); |
28 | 29 | ||
29 | debug('Injected Dark Mode style with ID', ID); | 30 | console.log('Injected Dark Mode style with ID', ID); |
30 | } | 31 | } |
31 | } | 32 | } |
32 | 33 | ||
@@ -36,7 +37,7 @@ export function removeDarkModeStyle() { | |||
36 | if (style) { | 37 | if (style) { |
37 | style.remove(); | 38 | style.remove(); |
38 | 39 | ||
39 | debug('Removed Dark Mode Style with ID', ID); | 40 | console.log('Removed Dark Mode Style with ID', ID); |
40 | } | 41 | } |
41 | } | 42 | } |
42 | 43 | ||