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/steamchat/webview.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes/steamchat/webview.js') diff --git a/recipes/steamchat/webview.js b/recipes/steamchat/webview.js index 2990131..cfe84f3 100644 --- a/recipes/steamchat/webview.js +++ b/recipes/steamchat/webview.js @@ -1,18 +1,18 @@ -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { // get new msg count let count = 0; const counters = document.querySelectorAll('[class*=FriendMessageCount]'); Array.prototype.filter.call(counters, countValue => { if (countValue) { - count += Ferdi.safeParseInt(countValue.textContent); + count += Ferdium.safeParseInt(countValue.textContent); } }); const indirectMessages = document.querySelectorAll( '[class*=ChatUnreadMessageIndicator]', ).length; - Ferdi.setBadge(count, indirectMessages); + Ferdium.setBadge(count, indirectMessages); // force scroll to bottom of chat window const chatBoxes = document.querySelectorAll('.chat_dialog'); @@ -28,7 +28,7 @@ module.exports = Ferdi => { } }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); document.addEventListener( 'click', @@ -38,7 +38,7 @@ module.exports = Ferdi => { if (link && link.getAttribute('target') === '_top') { event.preventDefault(); event.stopPropagation(); - Ferdi.openNewWindow(link.getAttribute('href')); + Ferdium.openNewWindow(link.getAttribute('href')); } }, true, -- cgit v1.2.3-70-g09d2