diff options
author | 2022-04-22 15:04:21 -0500 | |
---|---|---|
committer | 2022-04-22 20:04:21 +0000 | |
commit | 759d93dc198a3cc8c5265245c0144efa5435682b (patch) | |
tree | 53e963a085d3d12af5a2efa2f1ab6f3e5574edc7 /src/features/todos/preload.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/features/todos/preload.ts')
-rw-r--r-- | src/features/todos/preload.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/features/todos/preload.ts b/src/features/todos/preload.ts index 896d82bdf..4ccee39a0 100644 --- a/src/features/todos/preload.ts +++ b/src/features/todos/preload.ts | |||
@@ -1,9 +1,10 @@ | |||
1 | import { ipcRenderer } from 'electron'; | 1 | import { ipcRenderer } from 'electron'; |
2 | import { IPC } from './constants'; | 2 | import { IPC } from './constants'; |
3 | 3 | ||
4 | const debug = require('debug')('Ferdium:feature:todos:preload'); | 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:feature:todos:preload'); | ||
5 | 6 | ||
6 | debug('Preloading Todos Webview'); | 7 | console.log('Preloading Todos Webview'); |
7 | 8 | ||
8 | let hostMessageListener = ({ action }) => { | 9 | let hostMessageListener = ({ action }) => { |
9 | switch (action) { | 10 | switch (action) { |
@@ -27,7 +28,7 @@ window['ferdium'] = { | |||
27 | }; | 28 | }; |
28 | 29 | ||
29 | ipcRenderer.on(IPC.TODOS_HOST_CHANNEL, (event, message) => { | 30 | ipcRenderer.on(IPC.TODOS_HOST_CHANNEL, (event, message) => { |
30 | debug('Received host message', event, message); | 31 | console.log('Received host message', event, message); |
31 | hostMessageListener(message); | 32 | hostMessageListener(message); |
32 | }); | 33 | }); |
33 | 34 | ||