aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed
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
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')
-rw-r--r--uncompressed/whatsapp/package.json2
-rw-r--r--uncompressed/whatsapp/webview.js7
2 files changed, 1 insertions, 8 deletions
diff --git a/uncompressed/whatsapp/package.json b/uncompressed/whatsapp/package.json
index 3eccc69..210e8d1 100644
--- a/uncompressed/whatsapp/package.json
+++ b/uncompressed/whatsapp/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "whatsapp", 2 "id": "whatsapp",
3 "name": "WhatsApp", 3 "name": "WhatsApp",
4 "version": "1.1.0", 4 "version": "2.0.0",
5 "description": "WhatsApp", 5 "description": "WhatsApp",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "Stefan Malzner <stefan@adlk.io>", 7 "author": "Stefan Malzner <stefan@adlk.io>",
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();