diff options
Diffstat (limited to 'recipes/campuswire')
-rw-r--r-- | recipes/campuswire/index.js | 2 | ||||
-rw-r--r-- | recipes/campuswire/package.json | 2 | ||||
-rw-r--r-- | recipes/campuswire/webview.js | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/recipes/campuswire/index.js b/recipes/campuswire/index.js index 23607bd..dd41f72 100644 --- a/recipes/campuswire/index.js +++ b/recipes/campuswire/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/campuswire/package.json b/recipes/campuswire/package.json index ede4dfb..e71eaeb 100644 --- a/recipes/campuswire/package.json +++ b/recipes/campuswire/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "campuswire", | 2 | "id": "campuswire", |
3 | "name": "Campuswire", | 3 | "name": "Campuswire", |
4 | "version": "1.1.2", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://campuswire.com/c", | 7 | "serviceURL": "https://campuswire.com/c", |
diff --git a/recipes/campuswire/webview.js b/recipes/campuswire/webview.js index 418ac9d..d77d162 100644 --- a/recipes/campuswire/webview.js +++ b/recipes/campuswire/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | let count = document.querySelectorAll( | 3 | let count = document.querySelectorAll( |
4 | '._5fx8:not(._569x),._1ht3:not(._569x)', | 4 | '._5fx8:not(._569x),._1ht3:not(._569x)', |
@@ -6,13 +6,13 @@ module.exports = Ferdi => { | |||
6 | const messageRequestsElement = document.querySelector('._5nxf'); | 6 | const messageRequestsElement = document.querySelector('._5nxf'); |
7 | 7 | ||
8 | if (messageRequestsElement) { | 8 | if (messageRequestsElement) { |
9 | count += Ferdi.safeParseInt(messageRequestsElement.textContent); | 9 | count += Ferdium.safeParseInt(messageRequestsElement.textContent); |
10 | } | 10 | } |
11 | 11 | ||
12 | Ferdi.setBadge(count); | 12 | Ferdium.setBadge(count); |
13 | }; | 13 | }; |
14 | 14 | ||
15 | Ferdi.loop(getMessages); | 15 | Ferdium.loop(getMessages); |
16 | 16 | ||
17 | localStorage.setItem( | 17 | localStorage.setItem( |
18 | '_cs_desktopNotifsEnabled', | 18 | '_cs_desktopNotifsEnabled', |
@@ -22,8 +22,8 @@ module.exports = Ferdi => { | |||
22 | }), | 22 | }), |
23 | ); | 23 | ); |
24 | 24 | ||
25 | if (typeof Ferdi.onNotify === 'function') { | 25 | if (typeof Ferdium.onNotify === 'function') { |
26 | Ferdi.onNotify(notification => { | 26 | Ferdium.onNotify(notification => { |
27 | if (typeof notification.title !== 'string') { | 27 | if (typeof notification.title !== 'string') { |
28 | notification.title = | 28 | notification.title = |
29 | ((notification.title.props || {}).content || [])[0] || 'Campuswire'; | 29 | ((notification.title.props || {}).content || [])[0] || 'Campuswire'; |