From 759d93dc198a3cc8c5265245c0144efa5435682b Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Fri, 22 Apr 2022 15:04:21 -0500 Subject: Turn off usage of 'debug' npm package using with electron-16 (fixes #17) --- src/webview/dialogTitle.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/webview/dialogTitle.ts') 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 @@ import { ipcRenderer } from 'electron'; -const debug = require('debug')('Ferdium:Plugin:DialogTitleHandler'); +// TODO: Go back to 'debug' from 'console.log' when https://github.com/electron/electron/issues/31689 is fixed +// const debug = require('debug')('Ferdium:Plugin:DialogTitleHandler'); export class DialogTitleHandler { titleCache: { title: string }; @@ -25,7 +26,7 @@ export class DialogTitleHandler { return; } - debug('Sending active dialog title to host %s', newTitle); + console.log('Sending active dialog title to host %s', newTitle); ipcRenderer.sendToHost('active-dialog-title', newTitle); this.titleCache.title = newTitle; -- cgit v1.2.3-70-g09d2