aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/stackoverflow-chat
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
commit18801ed0c02627e87639dc0848cab44dacc18be2 (patch)
tree15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/stackoverflow-chat
parentRemove deprecated webPreference flag (diff)
downloadferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/stackoverflow-chat')
-rw-r--r--recipes/stackoverflow-chat/index.js2
-rw-r--r--recipes/stackoverflow-chat/package.json2
-rw-r--r--recipes/stackoverflow-chat/webview.js8
3 files changed, 6 insertions, 6 deletions
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 @@
1{ 1{
2 "id": "stackoverflow-chat", 2 "id": "stackoverflow-chat",
3 "name": "Stack Overflow Chat", 3 "name": "Stack Overflow Chat",
4 "version": "1.0.3", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://chat.stackoverflow.com/", 7 "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 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 const unreadSpan = document.querySelector( 3 const unreadSpan = document.querySelector(
4 'span.flag-count.message-count.unread-count', 4 'span.flag-count.message-count.unread-count',
5 ); 5 );
6 let directCount = 0; 6 let directCount = 0;
7 if (unreadSpan) { 7 if (unreadSpan) {
8 directCount = Ferdi.safeParseInt(unreadSpan.textContent); 8 directCount = Ferdium.safeParseInt(unreadSpan.textContent);
9 } 9 }
10 Ferdi.setBadge(directCount); 10 Ferdium.setBadge(directCount);
11 }; 11 };
12 Ferdi.loop(getMessages); 12 Ferdium.loop(getMessages);
13}; 13};