aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/dialogTitle.ts
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-04-22 15:04:21 -0500
committerLibravatar GitHub <noreply@github.com>2022-04-22 20:04:21 +0000
commit759d93dc198a3cc8c5265245c0144efa5435682b (patch)
tree53e963a085d3d12af5a2efa2f1ab6f3e5574edc7 /src/webview/dialogTitle.ts
parentAdded build scripts for linux, macos and windows to help new contributors get... (diff)
downloadferdium-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.ts5
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 @@
1import { ipcRenderer } from 'electron'; 1import { ipcRenderer } from 'electron';
2 2
3const 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
5export class DialogTitleHandler { 6export 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;