diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/plurk | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-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/plurk')
-rw-r--r-- | recipes/plurk/index.js | 2 | ||||
-rw-r--r-- | recipes/plurk/package.json | 2 | ||||
-rw-r--r-- | recipes/plurk/webview.js | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/recipes/plurk/index.js b/recipes/plurk/index.js index 23607bd..dd41f72 100644 --- a/recipes/plurk/index.js +++ b/recipes/plurk/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/plurk/package.json b/recipes/plurk/package.json index d9d3fb5..50415da 100644 --- a/recipes/plurk/package.json +++ b/recipes/plurk/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "plurk", | 2 | "id": "plurk", |
3 | "name": "Plurk", | 3 | "name": "Plurk", |
4 | "version": "1.1.2", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://www.plurk.com" | 7 | "serviceURL": "https://www.plurk.com" |
diff --git a/recipes/plurk/webview.js b/recipes/plurk/webview.js index 09f15da..dfacf30 100644 --- a/recipes/plurk/webview.js +++ b/recipes/plurk/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | let direct = 0; | 3 | let direct = 0; |
4 | 4 | ||
@@ -6,14 +6,14 @@ module.exports = Ferdi => { | |||
6 | const re = document.querySelector('#noti_re_count'); | 6 | const re = document.querySelector('#noti_re_count'); |
7 | 7 | ||
8 | if (np) { | 8 | if (np) { |
9 | direct += Ferdi.safeParseInt(np.textContent); | 9 | direct += Ferdium.safeParseInt(np.textContent); |
10 | } | 10 | } |
11 | if (re) { | 11 | if (re) { |
12 | direct += Ferdi.safeParseInt(re.textContent); | 12 | direct += Ferdium.safeParseInt(re.textContent); |
13 | } | 13 | } |
14 | 14 | ||
15 | Ferdi.setBadge(direct); | 15 | Ferdium.setBadge(direct); |
16 | }; | 16 | }; |
17 | 17 | ||
18 | Ferdi.loop(getMessages, 10_000); | 18 | Ferdium.loop(getMessages, 10_000); |
19 | }; | 19 | }; |