aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed/whatsapp/webview.js
diff options
context:
space:
mode:
authorLibravatar Amine <amine@mouafik.fr>2020-04-20 08:14:57 +0000
committerLibravatar GitHub <noreply@github.com>2020-04-20 08:14:57 +0000
commitf667a01c1e40aa444c1ee4a0df25771a557c602b (patch)
treedcc196b9a25be6cf8ce757cf4f6effdd83b8b8da /uncompressed/whatsapp/webview.js
parentUpdate Microsoft Teams to allow Desktop Sharing (#116) (diff)
downloadferdium-recipes-f667a01c1e40aa444c1ee4a0df25771a557c602b.tar.gz
ferdium-recipes-f667a01c1e40aa444c1ee4a0df25771a557c602b.tar.zst
ferdium-recipes-f667a01c1e40aa444c1ee4a0df25771a557c602b.zip
Remove WhatsApp reload attempts (#118)
Diffstat (limited to 'uncompressed/whatsapp/webview.js')
-rw-r--r--uncompressed/whatsapp/webview.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/uncompressed/whatsapp/webview.js b/uncompressed/whatsapp/webview.js
index 47d791d..989680a 100644
--- a/uncompressed/whatsapp/webview.js
+++ b/uncompressed/whatsapp/webview.js
@@ -10,13 +10,6 @@ const webContents = remote.getCurrentWebContents();
10const { 10const {
11 session 11 session
12} = webContents; 12} = webContents;
13setTimeout(() => {
14 const elem = document.querySelector('.landing-title.version-title');
15
16 if (elem && elem.innerText.toLowerCase().includes('google chrome')) {
17 window.location.reload();
18 }
19}, 1000);
20window.addEventListener('beforeunload', async () => { 13window.addEventListener('beforeunload', async () => {
21 try { 14 try {
22 session.flushStorageData(); 15 session.flushStorageData();