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/stackoverflow-chat/index.js | 2 +- recipes/stackoverflow-chat/package.json | 2 +- recipes/stackoverflow-chat/webview.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'recipes/stackoverflow-chat') diff --git a/recipes/stackoverflow-chat/index.js b/recipes/stackoverflow-chat/index.js index ea29aa3..dd41f72 100644 --- a/recipes/stackoverflow-chat/index.js +++ b/recipes/stackoverflow-chat/index.js @@ -1 +1 @@ -module.exports = Ferdi => class stackoverflowchat extends Ferdi {}; +module.exports = Ferdium => Ferdium; diff --git a/recipes/stackoverflow-chat/package.json b/recipes/stackoverflow-chat/package.json index 7ba21a7..a291593 100644 --- a/recipes/stackoverflow-chat/package.json +++ b/recipes/stackoverflow-chat/package.json @@ -1,7 +1,7 @@ { "id": "stackoverflow-chat", "name": "Stack Overflow Chat", - "version": "1.0.3", + "version": "1.1.0", "license": "MIT", "config": { "serviceURL": "https://chat.stackoverflow.com/", diff --git a/recipes/stackoverflow-chat/webview.js b/recipes/stackoverflow-chat/webview.js index 622d764..aa5bde6 100644 --- a/recipes/stackoverflow-chat/webview.js +++ b/recipes/stackoverflow-chat/webview.js @@ -1,13 +1,13 @@ -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { const unreadSpan = document.querySelector( 'span.flag-count.message-count.unread-count', ); let directCount = 0; if (unreadSpan) { - directCount = Ferdi.safeParseInt(unreadSpan.textContent); + directCount = Ferdium.safeParseInt(unreadSpan.textContent); } - Ferdi.setBadge(directCount); + Ferdium.setBadge(directCount); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); }; -- cgit v1.2.3-54-g00ecf