From 18801ed0c02627e87639dc0848cab44dacc18be2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 18 Apr 2022 06:51:50 -0500 Subject: Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2) --- recipes/lastpass/index.js | 4 ++-- recipes/lastpass/package.json | 2 +- recipes/lastpass/webview.js | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'recipes/lastpass') 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 @@ -module.exports = Ferdi => class Messenger extends Ferdi { +module.exports = Ferdium => class Messenger extends Ferdium { overrideUserAgent() { - return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); + return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(); } }; 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 @@ { "id": "lastpass", "name": "LastPass", - "version": "2.2.4", + "version": "2.3.0", "license": "MIT", "config": { "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(() => { } }, 1000); -module.exports = (Ferdi, settings) => { +module.exports = (Ferdium, settings) => { const getMessages = () => { const elements = document.querySelectorAll('.CxUIE, .unread'); let count = 0; @@ -23,11 +23,11 @@ module.exports = (Ferdi, settings) => { } } - Ferdi.setBadge(count); + Ferdium.setBadge(count); }; window.addEventListener('beforeunload', async () => { - Ferdi.clearStorageData(settings.id, { + Ferdium.clearStorageData(settings.id, { storages: [ 'appcache', 'serviceworkers', @@ -36,10 +36,10 @@ module.exports = (Ferdi, settings) => { 'indexdb', ], }); - Ferdi.releaseServiceWorkers(); + Ferdium.releaseServiceWorkers(); }); - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); - Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); }; -- cgit v1.2.3-54-g00ecf