diff options
author | 2020-04-28 17:43:27 +0700 | |
---|---|---|
committer | 2020-04-28 17:43:27 +0700 | |
commit | d8b7b63dcaab46940a271939b7284100b7ac9328 (patch) | |
tree | ccca80420da39a0cae8409016ef7d4b3e79b4e43 /uncompressed | |
parent | [ZALO] Update getMessages (diff) | |
download | ferdium-recipes-d8b7b63dcaab46940a271939b7284100b7ac9328.tar.gz ferdium-recipes-d8b7b63dcaab46940a271939b7284100b7ac9328.tar.zst ferdium-recipes-d8b7b63dcaab46940a271939b7284100b7ac9328.zip |
[ZALO] Fix variable use
Thanks @vantezzen
Diffstat (limited to 'uncompressed')
-rw-r--r-- | uncompressed/zalo/package.json | 2 | ||||
-rw-r--r-- | uncompressed/zalo/webview.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/uncompressed/zalo/package.json b/uncompressed/zalo/package.json index 57c57ce..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.1.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 34ae4ac..0f360c3 100644 --- a/uncompressed/zalo/webview.js +++ b/uncompressed/zalo/webview.js | |||
@@ -4,7 +4,7 @@ module.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('tab-red-dot').length; | 6 | const notificationBadge = document.getElementsByClassName('tab-red-dot').length; |
7 | Franz.setBadge(unread); | 7 | Franz.setBadge(notificationBadge); |
8 | }; | 8 | }; |
9 | 9 | ||
10 | Franz.loop(getMessages); | 10 | Franz.loop(getMessages); |