aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/lastpass
diff options
context:
space:
mode:
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 => {