diff options
author | 2022-04-22 15:04:21 -0500 | |
---|---|---|
committer | 2022-04-22 20:04:21 +0000 | |
commit | 759d93dc198a3cc8c5265245c0144efa5435682b (patch) | |
tree | 53e963a085d3d12af5a2efa2f1ab6f3e5574edc7 /src/webview/sessionHandler.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/sessionHandler.ts')
-rw-r--r-- | src/webview/sessionHandler.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/webview/sessionHandler.ts b/src/webview/sessionHandler.ts index e38368a18..a2906113d 100644 --- a/src/webview/sessionHandler.ts +++ b/src/webview/sessionHandler.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | const debug = require('debug')('Ferdium:Plugin:SessionHandler'); | 1 | // TODO: Go back to 'debug' from 'console.log' when https://github.com/electron/electron/issues/31689 is fixed |
2 | // const debug = require('debug')('Ferdium:Plugin:SessionHandler'); | ||
2 | 3 | ||
3 | export class SessionHandler { | 4 | export class SessionHandler { |
4 | async releaseServiceWorkers() { | 5 | async releaseServiceWorkers() { |
@@ -7,10 +8,10 @@ export class SessionHandler { | |||
7 | await window.navigator.serviceWorker.getRegistrations(); | 8 | await window.navigator.serviceWorker.getRegistrations(); |
8 | for (const registration of registrations) { | 9 | for (const registration of registrations) { |
9 | registration.unregister(); | 10 | registration.unregister(); |
10 | debug('ServiceWorker unregistered'); | 11 | console.log('ServiceWorker unregistered'); |
11 | } | 12 | } |
12 | } catch (error) { | 13 | } catch (error) { |
13 | debug(error); | 14 | console.log(error); |
14 | } | 15 | } |
15 | } | 16 | } |
16 | } | 17 | } |