aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/jollor/webview.js
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/jollor/webview.js
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/jollor/webview.js')
-rw-r--r--recipes/jollor/webview.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/recipes/jollor/webview.js b/recipes/jollor/webview.js
index a575eab..5982ece 100644
--- a/recipes/jollor/webview.js
+++ b/recipes/jollor/webview.js
@@ -1,12 +1,14 @@
1const path = require('path'); 1const _path = _interopRequireDefault(require('path'));
2 2
3module.exports = (Franz, options) => { 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4
5module.exports = (Ferdi) => {
4 function getMessages() { 6 function getMessages() {
5 const count = document.querySelector('.user-menu-message-item-count').innerHTML; 7 const count = document.querySelector('.user-menu-message-item-count').innerHTML;
6 8 Ferdi.setBadge(count);
7 Franz.setBadge(count);
8 } 9 }
9 10
10 Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); 11 Ferdi.loop(getMessages);
11 Franz.loop(getMessages); 12
13 Ferdi.injectCSS(_path.default.join(__dirname, 'css', 'franz.css'));
12}; 14};