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/withspectrum/webview.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'recipes/withspectrum/webview.js') diff --git a/recipes/withspectrum/webview.js b/recipes/withspectrum/webview.js index e50634c..0a3d9f3 100644 --- a/recipes/withspectrum/webview.js +++ b/recipes/withspectrum/webview.js @@ -1,12 +1,11 @@ -module.exports = Franz => { +module.exports = Ferdi => { const getMessages = () => { const element = document.querySelector('[href="/notifications"] > div'); const content = window.getComputedStyle(element, ':after').getPropertyValue('content').match(/\d+/); const notifications = Number(content); - Franz.setBadge(notifications); + Ferdi.setBadge(notifications); }; - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndpdGhzcGVjdHJ1bS93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwiZWxlbWVudCIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvciIsImNvbnRlbnQiLCJ3aW5kb3ciLCJnZXRDb21wdXRlZFN0eWxlIiwiZ2V0UHJvcGVydHlWYWx1ZSIsIm1hdGNoIiwibm90aWZpY2F0aW9ucyIsIk51bWJlciIsInNldEJhZGdlIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBUztBQUN4QixRQUFNQyxjQUFjLE1BQU07QUFDeEIsVUFBTUMsVUFBVUMsU0FBU0MsYUFBVCxDQUF1QiwrQkFBdkIsQ0FBaEI7QUFDQSxVQUFNQyxVQUFVQy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