aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/android-messages/webview.js
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/android-messages/webview.js
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/android-messages/webview.js')
-rw-r--r--recipes/android-messages/webview.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/recipes/android-messages/webview.js b/recipes/android-messages/webview.js
index 0ac39be..9f658c9 100644
--- a/recipes/android-messages/webview.js
+++ b/recipes/android-messages/webview.js
@@ -1,12 +1,10 @@
1"use strict";
2
3const { 1const {
4 remote 2 remote,
5} = require('electron'); 3} = require('electron');
6 4
7const webContents = remote.getCurrentWebContents(); 5const webContents = remote.getCurrentWebContents();
8const { 6const {
9 session 7 session,
10} = webContents; 8} = webContents;
11setTimeout(() => { 9setTimeout(() => {
12 const elem = document.querySelector('#af-error-container'); 10 const elem = document.querySelector('#af-error-container');
@@ -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 => {