summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrealgagu2019-04-12 20:16:10 -0500
committerfrealgagu2019-04-12 20:16:10 -0500
commit422047b3e90771fa5d0d51ea5753cb2b6155ad1d (patch)
treecaccfb534cc8ad0bd304d5e325fa4f15a750d56c
parente4f34c36ea1e4e9f0ee5d85fe5013a4a7184ab5d (diff)
downloadaur-422047b3e90771fa5d0d51ea5753cb2b6155ad1d.tar.gz
Fixing inject to skip browser validation.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--whatsapp-nativefier-inject.js2
3 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8b497cdd272..c0e8ef58c50 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = whatsapp-nativefier
pkgdesc = WhatsApp desktop built with nativefier (electron)
- pkgver = 0.3.2041
+ pkgver = 0.3.2846
pkgrel = 1
url = https://web.whatsapp.com
arch = armv7l
@@ -17,7 +17,7 @@ pkgbase = whatsapp-nativefier
source = whatsapp-nativefier-inject.js
sha256sums = 3899581abcfed9b40b7208bbbca8bdbfe3ae9655980dbf55f04dec9cb3309f27
sha256sums = a4ea20639ea570d2f9ec6040b8873136fa507e0aa2341fd98aad25aa6bb66e2e
- sha256sums = 043bd3f16d42464fab92d9ecd9ca4312f9a2bc07ca4da106df73ae0f227fa67f
+ sha256sums = e1051cf02ab194073370cce0f0e8226e58df03e8e55fa310cfa998b17ff1a52e
pkgname = whatsapp-nativefier
diff --git a/PKGBUILD b/PKGBUILD
index bf42616cbb4..20ba442e7e8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Fredy GarcĂ­a <frealgagu at gmail dot com>
pkgname=whatsapp-nativefier
-pkgver=0.3.2041
+pkgver=0.3.2846
pkgrel=1
pkgdesc="WhatsApp desktop built with nativefier (electron)"
arch=("armv7l" "i686" "x86_64")
@@ -14,7 +14,7 @@ source=("${pkgname}.png"
"${pkgname}-inject.js")
sha256sums=("3899581abcfed9b40b7208bbbca8bdbfe3ae9655980dbf55f04dec9cb3309f27"
"a4ea20639ea570d2f9ec6040b8873136fa507e0aa2341fd98aad25aa6bb66e2e"
- "043bd3f16d42464fab92d9ecd9ca4312f9a2bc07ca4da106df73ae0f227fa67f")
+ "e1051cf02ab194073370cce0f0e8226e58df03e8e55fa310cfa998b17ff1a52e")
build() {
cd "${srcdir}"
diff --git a/whatsapp-nativefier-inject.js b/whatsapp-nativefier-inject.js
index f60009058b6..428cc9c295d 100644
--- a/whatsapp-nativefier-inject.js
+++ b/whatsapp-nativefier-inject.js
@@ -1,2 +1,2 @@
-if (document.body.innerText.replace(/\n/g, ' ').search(/whatsapp works with.*to use whatsapp.*update/i) === 0)
+if (document.body.innerText.replace(/\n/g, ' ').search(/whatsapp works with.*to use whatsapp.*update/i) !== -1)
navigator.serviceWorker.getRegistration().then(function (r) { r.unregister(); document.location.reload() });