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/workplace/webview.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'recipes/workplace/webview.js') diff --git a/recipes/workplace/webview.js b/recipes/workplace/webview.js index 90c6c27..8ee283b 100644 --- a/recipes/workplace/webview.js +++ b/recipes/workplace/webview.js @@ -4,7 +4,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { let direct = 0; let indirect = 0; @@ -12,7 +12,7 @@ module.exports = Ferdi => { const notifications = document.querySelector('#notifications span span'); if (notifications) { - indirect = Ferdi.safeParseInt(notifications.textContent); + indirect = Ferdium.safeParseInt(notifications.textContent); } if (chatsElement) { @@ -20,7 +20,7 @@ module.exports = Ferdi => { const chatMessages = chatsElement.querySelector('span'); if (chatMessages) { - direct = Ferdi.safeParseInt(chatMessages.textContent); + direct = Ferdium.safeParseInt(chatMessages.textContent); } } else { direct = document.querySelectorAll( @@ -29,20 +29,20 @@ module.exports = Ferdi => { } } - Ferdi.setBadge(direct, indirect); + Ferdium.setBadge(direct, indirect); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); - Ferdi.injectCSS(_path.default.join(__dirname, 'workplace.css')); + Ferdium.injectCSS(_path.default.join(__dirname, 'workplace.css')); localStorage._cs_desktopNotifsEnabled = JSON.stringify({ __t: Date.now(), __v: true, }); - if (typeof Ferdi.onNotify === 'function') { - Ferdi.onNotify(notification => { + if (typeof Ferdium.onNotify === 'function') { + Ferdium.onNotify(notification => { if (typeof notification.title !== 'string') { notification.title = ((notification.title.props || {}).content || [])[0] || 'Work Chat'; -- cgit v1.2.3-70-g09d2