aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zulip
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-27 18:13:24 +0530
committerLibravatar GitHub <noreply@github.com>2021-08-27 18:13:24 +0530
commit155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch)
treed144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/zulip
parentdocs: fixed template file for creating recipe. (diff)
downloadferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.gz
ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.zst
ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.zip
chore: normalized all recipes to ensure compatibility with es6 (#639)
- Removed some calls to set badge with '0' all the time. - Removed all 'sourceMaps' since they are all outdated atm.
Diffstat (limited to 'recipes/zulip')
-rw-r--r--recipes/zulip/index.js2
-rw-r--r--recipes/zulip/package.json2
-rw-r--r--recipes/zulip/webview.js7
3 files changed, 6 insertions, 5 deletions
diff --git a/recipes/zulip/index.js b/recipes/zulip/index.js
index cd8ffea..5854600 100644
--- a/recipes/zulip/index.js
+++ b/recipes/zulip/index.js
@@ -1,4 +1,4 @@
1module.exports = Franz => class Zulip extends Franz { 1module.exports = Ferdi => class Zulip extends Ferdi {
2 async validateUrl(url) { 2 async validateUrl(url) {
3 const baseUrl = new window.URL(url); 3 const baseUrl = new window.URL(url);
4 const apiVersion = 'api/v1'; 4 const apiVersion = 'api/v1';
diff --git a/recipes/zulip/package.json b/recipes/zulip/package.json
index e5ee86e..21b2d44 100644
--- a/recipes/zulip/package.json
+++ b/recipes/zulip/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "zulip", 2 "id": "zulip",
3 "name": "Zulip", 3 "name": "Zulip",
4 "version": "1.0.5", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "hasNotificationSound": true, 7 "hasNotificationSound": true,
diff --git a/recipes/zulip/webview.js b/recipes/zulip/webview.js
index 7a71886..09e999d 100644
--- a/recipes/zulip/webview.js
+++ b/recipes/zulip/webview.js
@@ -1,7 +1,8 @@
1module.exports = (Franz) => { 1module.exports = (Ferdi) => {
2 const getMessages = function getMessages() { 2 const getMessages = function getMessages() {
3 const allMessages = Math.round(document.querySelectorAll('#global_filters .top_left_all_messages .count .value')[0].innerText); 3 const allMessages = Math.round(document.querySelectorAll('#global_filters .top_left_all_messages .count .value')[0].innerText);
4 Franz.setBadge(allMessages); 4 Ferdi.setBadge(allMessages);
5 }; 5 };
6 Franz.loop(getMessages); 6
7 Ferdi.loop(getMessages);
7}; 8};