aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/plek
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/plek
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/plek')
-rw-r--r--recipes/plek/index.js2
-rw-r--r--recipes/plek/package.json2
-rw-r--r--recipes/plek/webview.js10
3 files changed, 7 insertions, 7 deletions
diff --git a/recipes/plek/index.js b/recipes/plek/index.js
index 23607bd..dd41f72 100644
--- a/recipes/plek/index.js
+++ b/recipes/plek/index.js
@@ -1 +1 @@
module.exports = Ferdi => Ferdi; module.exports = Ferdium => Ferdium;
diff --git a/recipes/plek/package.json b/recipes/plek/package.json
index a1737e9..815b34e 100644
--- a/recipes/plek/package.json
+++ b/recipes/plek/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "plek", 2 "id": "plek",
3 "name": "Plek", 3 "name": "Plek",
4 "version": "1.0.1", 4 "version": "1.1.0",
5 "repository": "https://github.com/jsimonetti/franz-recipe-plek", 5 "repository": "https://github.com/jsimonetti/franz-recipe-plek",
6 "license": "MIT", 6 "license": "MIT",
7 "config": { 7 "config": {
diff --git a/recipes/plek/webview.js b/recipes/plek/webview.js
index 661868b..bf3579e 100644
--- a/recipes/plek/webview.js
+++ b/recipes/plek/webview.js
@@ -1,20 +1,20 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 let directMessages = 0; 3 let directMessages = 0;
4 let indirectMessages = 0; 4 let indirectMessages = 0;
5 5
6 const elements = document.querySelectorAll('.counter'); 6 const elements = document.querySelectorAll('.counter');
7 for (const element of elements) { 7 for (const element of elements) {
8 directMessages += Ferdi.safeParseInt(element.textContent); 8 directMessages += Ferdium.safeParseInt(element.textContent);
9 } 9 }
10 10
11 const elements2 = document.querySelectorAll('.badge'); 11 const elements2 = document.querySelectorAll('.badge');
12 for (const element of elements2) { 12 for (const element of elements2) {
13 indirectMessages += Ferdi.safeParseInt(element.textContent); 13 indirectMessages += Ferdium.safeParseInt(element.textContent);
14 } 14 }
15 15
16 Ferdi.setBadge(directMessages, indirectMessages); 16 Ferdium.setBadge(directMessages, indirectMessages);
17 }; 17 };
18 18
19 Ferdi.loop(getMessages); 19 Ferdium.loop(getMessages);
20}; 20};