aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/lastpass
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
commit97697e3d069972844b2912a93022f4a4904a40d6 (patch)
tree53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/lastpass
parentAllow any url in the custom-service to allow for sites like 'http://translate... (diff)
downloadferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/lastpass')
-rw-r--r--recipes/lastpass/index.js5
-rw-r--r--recipes/lastpass/webview.js8
2 files changed, 4 insertions, 9 deletions
diff --git a/recipes/lastpass/index.js b/recipes/lastpass/index.js
index dd10055..16c9047 100644
--- a/recipes/lastpass/index.js
+++ b/recipes/lastpass/index.js
@@ -1,8 +1,5 @@
1"use strict";
2
3module.exports = Franz => class Messenger extends Franz { 1module.exports = Franz => class Messenger extends Franz {
4 overrideUserAgent() { 2 overrideUserAgent() {
5 return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, ''); 3 return window.navigator.userAgent.replace(/(Franz|Electron)([^\s]+\s)/g, '');
6 } 4 }
7 5};
8}; \ No newline at end of file
diff --git a/recipes/lastpass/webview.js b/recipes/lastpass/webview.js
index 2b8fc28..bed9a32 100644
--- a/recipes/lastpass/webview.js
+++ b/recipes/lastpass/webview.js
@@ -1,14 +1,12 @@
1"use strict";
2
3const { 1const {
4 remote 2 remote,
5} = require('electron'); 3} = require('electron');
6 4
7const path = require('path'); 5const path = require('path');
8 6
9const webContents = remote.getCurrentWebContents(); 7const webContents = remote.getCurrentWebContents();
10const { 8const {
11 session 9 session,
12} = webContents; 10} = webContents;
13setTimeout(() => { 11setTimeout(() => {
14 if (document.querySelector('body').innerHTML.includes('Google Chrome 36+')) { 12 if (document.querySelector('body').innerHTML.includes('Google Chrome 36+')) {
@@ -19,7 +17,7 @@ window.addEventListener('beforeunload', async () => {
19 try { 17 try {
20 session.flushStorageData(); 18 session.flushStorageData();
21 session.clearStorageData({ 19 session.clearStorageData({
22 storages: ['appcache', 'serviceworkers', 'cachestorage', 'websql', 'indexdb'] 20 storages: ['appcache', 'serviceworkers', 'cachestorage', 'websql', 'indexdb'],
23 }); 21 });
24 const registrations = await window.navigator.serviceWorker.getRegistrations(); 22 const registrations = await window.navigator.serviceWorker.getRegistrations();
25 registrations.forEach(r => { 23 registrations.forEach(r => {