aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/lastpass/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/lastpass/webview.js')
-rw-r--r--recipes/lastpass/webview.js12
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
15module.exports = (Ferdi, settings) => { 15module.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};