diff options
Diffstat (limited to 'recipes/googlemeet/webview.js')
-rw-r--r-- | recipes/googlemeet/webview.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/recipes/googlemeet/webview.js b/recipes/googlemeet/webview.js index d6a29fe..9d334ba 100644 --- a/recipes/googlemeet/webview.js +++ b/recipes/googlemeet/webview.js | |||
@@ -10,13 +10,11 @@ window.onload = () => { | |||
10 | } | 10 | } |
11 | }; | 11 | }; |
12 | 12 | ||
13 | module.exports = Ferdi => { | 13 | window.addEventListener('beforeunload', async () => { |
14 | const { session } = Ferdi.getCurrentWebContents(); | 14 | Ferdi.clearStorageData(['serviceworkers']); |
15 | session.flushStorageData(); | 15 | }); |
16 | session.clearStorageData({ | ||
17 | storages: ['serviceworkers'], | ||
18 | }); | ||
19 | 16 | ||
17 | module.exports = Ferdi => { | ||
20 | const getMessages = function getMessages() { | 18 | const getMessages = function getMessages() { |
21 | const elements = document.querySelectorAll('.CxUIE, .unread'); | 19 | const elements = document.querySelectorAll('.CxUIE, .unread'); |
22 | let count = 0; | 20 | let count = 0; |