From 155c4b832281348c16be1f4ef667e6e23dbf1bd8 Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Fri, 27 Aug 2021 18:13:24 +0530 Subject: 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. --- recipes/element/index.js | 2 +- recipes/element/package.json | 2 +- recipes/element/webview.js | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-) (limited to 'recipes/element') diff --git a/recipes/element/index.js b/recipes/element/index.js index 258da41..23607bd 100644 --- a/recipes/element/index.js +++ b/recipes/element/index.js @@ -1 +1 @@ -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; diff --git a/recipes/element/package.json b/recipes/element/package.json index 5e155ae..528e167 100644 --- a/recipes/element/package.json +++ b/recipes/element/package.json @@ -1,7 +1,7 @@ { "id": "element", "name": "Element", - "version": "1.0.6", + "version": "1.1.0", "license": "MIT", "aliases": [ "Riot.im", diff --git a/recipes/element/webview.js b/recipes/element/webview.js index 22ff738..18bb7ad 100644 --- a/recipes/element/webview.js +++ b/recipes/element/webview.js @@ -1,4 +1,4 @@ -module.exports = Franz => { +module.exports = Ferdi => { function getMessages() { const badges = document.querySelectorAll('.mx_RoomSublist:not(.mx_RoomSublist_hidden) .mx_RoomSublist_badgeContainer'); @@ -14,10 +14,9 @@ module.exports = Franz => { indirect_count = parseInt(badges[1].textContent); } - // set Franz badge - Franz.setBadge(direct_count, indirect_count); + // set Ferdi badge + Ferdi.setBadge(direct_count, indirect_count); } - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -- cgit v1.2.3-70-g09d2