diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/lastpass/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/lastpass/webview.js')
-rw-r--r-- | recipes/lastpass/webview.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/recipes/lastpass/webview.js b/recipes/lastpass/webview.js index df3bd77..6287964 100644 --- a/recipes/lastpass/webview.js +++ b/recipes/lastpass/webview.js | |||
@@ -12,7 +12,7 @@ setTimeout(() => { | |||
12 | } | 12 | } |
13 | }, 1000); | 13 | }, 1000); |
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,11 +23,11 @@ module.exports = (Ferdi, settings) => { | |||
23 | } | 23 | } |
24 | } | 24 | } |
25 | 25 | ||
26 | Ferdi.setBadge(count); | 26 | Ferdium.setBadge(count); |
27 | }; | 27 | }; |
28 | 28 | ||
29 | window.addEventListener('beforeunload', async () => { | 29 | window.addEventListener('beforeunload', async () => { |
30 | Ferdi.clearStorageData(settings.id, { | 30 | Ferdium.clearStorageData(settings.id, { |
31 | storages: [ | 31 | storages: [ |
32 | 'appcache', | 32 | 'appcache', |
33 | 'serviceworkers', | 33 | 'serviceworkers', |
@@ -36,10 +36,10 @@ module.exports = (Ferdi, settings) => { | |||
36 | 'indexdb', | 36 | 'indexdb', |
37 | ], | 37 | ], |
38 | }); | 38 | }); |
39 | Ferdi.releaseServiceWorkers(); | 39 | Ferdium.releaseServiceWorkers(); |
40 | }); | 40 | }); |
41 | 41 | ||
42 | Ferdi.loop(getMessages); | 42 | Ferdium.loop(getMessages); |
43 | 43 | ||
44 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 44 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
45 | }; | 45 | }; |