From 18801ed0c02627e87639dc0848cab44dacc18be2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 18 Apr 2022 06:51:50 -0500 Subject: Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2) --- recipes/erepublik/webview.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'recipes/erepublik/webview.js') diff --git a/recipes/erepublik/webview.js b/recipes/erepublik/webview.js index a47c57d..2f5bc9f 100644 --- a/recipes/erepublik/webview.js +++ b/recipes/erepublik/webview.js @@ -2,7 +2,7 @@ const _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { const elementNotify = document.querySelectorAll('.notify'); const elementFeed = document.querySelectorAll('.unreadCounter.ng-binding.ng-scope'); @@ -12,18 +12,18 @@ module.exports = Ferdi => { for (const element of elementNotify) { const splitText = element.title.split(':'); - countNotify += Ferdi.safeParseInt(splitText[1]); + countNotify += Ferdium.safeParseInt(splitText[1]); } for (const element of elementFeed) { - countFeed += Ferdi.safeParseInt(element.textContent); + countFeed += Ferdium.safeParseInt(element.textContent); } - Ferdi.setBadge(countNotify, countFeed); + Ferdium.setBadge(countNotify, countFeed); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); - Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); - Ferdi.injectCSS(_path.default.join(__dirname, 'crpk-resources/fonts.css')); + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdium.injectCSS(_path.default.join(__dirname, 'crpk-resources/fonts.css')); }; -- cgit v1.2.3-70-g09d2