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