diff options
author | 2022-04-18 06:51:50 -0500 | |
---|---|---|
committer | 2022-04-18 06:51:50 -0500 | |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/googlemeet/webview.js | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip |
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/googlemeet/webview.js')
-rw-r--r-- | recipes/googlemeet/webview.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/googlemeet/webview.js b/recipes/googlemeet/webview.js index 6ea36f3..f3c0f46 100644 --- a/recipes/googlemeet/webview.js +++ b/recipes/googlemeet/webview.js | |||
@@ -12,7 +12,7 @@ window.addEventListener('load', () => { | |||
12 | } | 12 | } |
13 | }); | 13 | }); |
14 | 14 | ||
15 | module.exports = (Ferdi, settings) => { | 15 | module.exports = (Ferdium, settings) => { |
16 | const getMessages = () => { | 16 | const getMessages = () => { |
17 | const elements = document.querySelectorAll('.CxUIE, .unread'); | 17 | const elements = document.querySelectorAll('.CxUIE, .unread'); |
18 | let count = 0; | 18 | let count = 0; |
@@ -23,14 +23,14 @@ module.exports = (Ferdi, settings) => { | |||
23 | } | 23 | } |
24 | } | 24 | } |
25 | 25 | ||
26 | Ferdi.setBadge(count); | 26 | Ferdium.setBadge(count); |
27 | }; | 27 | }; |
28 | 28 | ||
29 | Ferdi.loop(getMessages); | 29 | Ferdium.loop(getMessages); |
30 | 30 | ||
31 | window.addEventListener('beforeunload', async () => { | 31 | window.addEventListener('beforeunload', async () => { |
32 | Ferdi.clearStorageData(settings.id, { storages: ['serviceworkers'] }); | 32 | Ferdium.clearStorageData(settings.id, { storages: ['serviceworkers'] }); |
33 | }); | 33 | }); |
34 | 34 | ||
35 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 35 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
36 | }; | 36 | }; |