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/mastodon | |
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/mastodon')
-rw-r--r-- | recipes/mastodon/index.js | 4 | ||||
-rw-r--r-- | recipes/mastodon/package.json | 2 | ||||
-rw-r--r-- | recipes/mastodon/webview.js | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/mastodon/index.js b/recipes/mastodon/index.js index 9be0938..f849228 100644 --- a/recipes/mastodon/index.js +++ b/recipes/mastodon/index.js | |||
@@ -1,5 +1,5 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | class Mastodon extends Ferdi { | 2 | class Mastodon extends Ferdium { |
3 | validateServer(URL) { | 3 | validateServer(URL) { |
4 | const api = `${URL}`; | 4 | const api = `${URL}`; |
5 | return new Promise((resolve, reject) => { | 5 | return new Promise((resolve, reject) => { |
diff --git a/recipes/mastodon/package.json b/recipes/mastodon/package.json index c77d834..83b42a0 100644 --- a/recipes/mastodon/package.json +++ b/recipes/mastodon/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "name": "Mastodon", | 2 | "name": "Mastodon", |
3 | "id": "mastodon", | 3 | "id": "mastodon", |
4 | "version": "1.2.1", | 4 | "version": "1.3.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "hasNotificationSound": true, | 7 | "hasNotificationSound": true, |
diff --git a/recipes/mastodon/webview.js b/recipes/mastodon/webview.js index 8fb448f..e34f284 100644 --- a/recipes/mastodon/webview.js +++ b/recipes/mastodon/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | let latestStatement = $('.status time').attr('datetime'); | 2 | let latestStatement = $('.status time').attr('datetime'); |
3 | let latestNotify = $($('.notification__message span').get(0)).text(); | 3 | let latestNotify = $($('.notification__message span').get(0)).text(); |
4 | 4 | ||
@@ -21,8 +21,8 @@ module.exports = Ferdi => { | |||
21 | unread = 1; | 21 | unread = 1; |
22 | } | 22 | } |
23 | 23 | ||
24 | Ferdi.setBadge(reply, unread); | 24 | Ferdium.setBadge(reply, unread); |
25 | }; | 25 | }; |
26 | 26 | ||
27 | Ferdi.loop(getMessages); | 27 | Ferdium.loop(getMessages); |
28 | }; | 28 | }; |