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/dialogTitle.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/dialogTitle.ts')
-rw-r--r-- | src/webview/dialogTitle.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/webview/dialogTitle.ts b/src/webview/dialogTitle.ts index 393c2499f..a5bcb4c41 100644 --- a/src/webview/dialogTitle.ts +++ b/src/webview/dialogTitle.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import { ipcRenderer } from 'electron'; | 1 | import { ipcRenderer } from 'electron'; |
2 | 2 | ||
3 | const debug = require('debug')('Ferdium:Plugin:DialogTitleHandler'); | 3 | // TODO: Go back to 'debug' from 'console.log' when https://github.com/electron/electron/issues/31689 is fixed |
4 | // const debug = require('debug')('Ferdium:Plugin:DialogTitleHandler'); | ||
4 | 5 | ||
5 | export class DialogTitleHandler { | 6 | export class DialogTitleHandler { |
6 | titleCache: { title: string }; | 7 | titleCache: { title: string }; |
@@ -25,7 +26,7 @@ export class DialogTitleHandler { | |||
25 | return; | 26 | return; |
26 | } | 27 | } |
27 | 28 | ||
28 | debug('Sending active dialog title to host %s', newTitle); | 29 | console.log('Sending active dialog title to host %s', newTitle); |
29 | ipcRenderer.sendToHost('active-dialog-title', newTitle); | 30 | ipcRenderer.sendToHost('active-dialog-title', newTitle); |
30 | 31 | ||
31 | this.titleCache.title = newTitle; | 32 | this.titleCache.title = newTitle; |