aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-04-28 13:28:47 +0200
committerLibravatar GitHub <noreply@github.com>2020-04-28 13:28:47 +0200
commit0fbfa61fee8deb3ac7aaa8d5b4e8ec867231d180 (patch)
treeccca80420da39a0cae8409016ef7d4b3e79b4e43
parentRepackage corrupted recipe archive (diff)
parent[ZALO] Fix variable use (diff)
downloadferdium-recipes-0fbfa61fee8deb3ac7aaa8d5b4e8ec867231d180.tar.gz
ferdium-recipes-0fbfa61fee8deb3ac7aaa8d5b4e8ec867231d180.tar.zst
ferdium-recipes-0fbfa61fee8deb3ac7aaa8d5b4e8ec867231d180.zip
Merge pull request #145 from RoiArthurB/master
[ZALO] Update version
-rw-r--r--all.json2
-rw-r--r--archives/zalo.tar.gzbin51990 -> 51951 bytes
-rw-r--r--uncompressed/zalo/package.json2
-rw-r--r--uncompressed/zalo/webview.js9
4 files changed, 5 insertions, 8 deletions
diff --git a/all.json b/all.json
index 1db16db..7aca725 100644
--- a/all.json
+++ b/all.json
@@ -1049,7 +1049,7 @@
1049 "featured": false, 1049 "featured": false,
1050 "id": "zalo", 1050 "id": "zalo",
1051 "name": "Zalo", 1051 "name": "Zalo",
1052 "version": "1.0.0", 1052 "version": "1.1.1",
1053 "icons": { 1053 "icons": {
1054 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/zalo/icon.png", 1054 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/zalo/icon.png",
1055 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/zalo/icon.svg" 1055 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/zalo/icon.svg"
diff --git a/archives/zalo.tar.gz b/archives/zalo.tar.gz
index d3a5f6c..c11f022 100644
--- a/archives/zalo.tar.gz
+++ b/archives/zalo.tar.gz
Binary files differ
diff --git a/uncompressed/zalo/package.json b/uncompressed/zalo/package.json
index 8e2417c..183fc20 100644
--- a/uncompressed/zalo/package.json
+++ b/uncompressed/zalo/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "zalo", 2 "id": "zalo",
3 "name": "Zalo", 3 "name": "Zalo",
4 "version": "1.0.0", 4 "version": "1.1.1",
5 "description": "Zalo", 5 "description": "Zalo",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "RoiArthurB <arthurbrugiere01@gmail.com>", 7 "author": "RoiArthurB <arthurbrugiere01@gmail.com>",
diff --git a/uncompressed/zalo/webview.js b/uncompressed/zalo/webview.js
index e20c6b5..0f360c3 100644
--- a/uncompressed/zalo/webview.js
+++ b/uncompressed/zalo/webview.js
@@ -3,12 +3,9 @@
3module.exports = Franz => { 3module.exports = Franz => {
4 const getMessages = function getMessages() { 4 const getMessages = function getMessages() {
5 var unread = 0 5 var unread = 0
6 const notificationBadge = document.getElementsByClassName('notification-badge')[0] 6 const notificationBadge = document.getElementsByClassName('tab-red-dot').length;
7 if (notificationBadge != undefined) { 7 Franz.setBadge(notificationBadge);
8 unread = notificationBadge.innerText;
9 }
10 Franz.setBadge(parseInt(unread, 10));
11 }; 8 };
12 9
13 Franz.loop(getMessages); 10 Franz.loop(getMessages);
14}; \ No newline at end of file 11};