aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/lastpass
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
commit18801ed0c02627e87639dc0848cab44dacc18be2 (patch)
tree15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/lastpass
parentRemove deprecated webPreference flag (diff)
downloadferdium-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')
-rw-r--r--recipes/lastpass/index.js4
-rw-r--r--recipes/lastpass/package.json2
-rw-r--r--recipes/lastpass/webview.js12
3 files changed, 9 insertions, 9 deletions
diff --git a/recipes/lastpass/index.js b/recipes/lastpass/index.js
index e0daab9..8cf6ec6 100644
--- a/recipes/lastpass/index.js
+++ b/recipes/lastpass/index.js
@@ -1,5 +1,5 @@
1module.exports = Ferdi => class Messenger extends Ferdi { 1module.exports = Ferdium => class Messenger extends Ferdium {
2 overrideUserAgent() { 2 overrideUserAgent() {
3 return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); 3 return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim();
4 } 4 }
5}; 5};
diff --git a/recipes/lastpass/package.json b/recipes/lastpass/package.json
index 0ace23e..8e1efdb 100644
--- a/recipes/lastpass/package.json
+++ b/recipes/lastpass/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "lastpass", 2 "id": "lastpass",
3 "name": "LastPass", 3 "name": "LastPass",
4 "version": "2.2.4", 4 "version": "2.3.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://lastpass.com/?ac=1&lpnorefresh=1", 7 "serviceURL": "https://lastpass.com/?ac=1&lpnorefresh=1",
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};