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/thelounge/webview.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes/thelounge/webview.js') diff --git a/recipes/thelounge/webview.js b/recipes/thelounge/webview.js index 394c867..5d3dbb7 100644 --- a/recipes/thelounge/webview.js +++ b/recipes/thelounge/webview.js @@ -25,7 +25,7 @@ function countsOfUnreadMessagesAfterMarker(unreadMarker) { return [unread, unreadHighlighted]; } -module.exports = Ferdi => { +module.exports = Ferdium => { var unreadMessagesAtLastActivity = 0; var unreadHighlightedMessagesAtLastActivity = 0; @@ -41,7 +41,7 @@ module.exports = Ferdi => { for (const directElement of directElements) { if (directElement.textContent.length > 0) { - direct += Ferdi.safeParseInt(directElement.textContent); + direct += Ferdium.safeParseInt(directElement.textContent); } } @@ -79,13 +79,13 @@ module.exports = Ferdi => { unreadHighlightedMessagesAtLastActivity = 0; } - Ferdi.setBadge(direct, indirect); + Ferdium.setBadge(direct, indirect); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); // We need to monkey patch ServierWorker.postMessage so that notifications // will work, and that needs to be done without context isolation: const path = require('path'); - Ferdi.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js')); + Ferdium.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js')); }; -- cgit v1.2.3-70-g09d2