diff options
Diffstat (limited to 'recipes/ciscospark')
-rw-r--r-- | recipes/ciscospark/index.js | 2 | ||||
-rw-r--r-- | recipes/ciscospark/package.json | 2 | ||||
-rw-r--r-- | recipes/ciscospark/webview.js | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/recipes/ciscospark/index.js b/recipes/ciscospark/index.js index 23607bd..dd41f72 100644 --- a/recipes/ciscospark/index.js +++ b/recipes/ciscospark/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/ciscospark/package.json b/recipes/ciscospark/package.json index 06e05eb..8e7b16b 100644 --- a/recipes/ciscospark/package.json +++ b/recipes/ciscospark/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "ciscospark", | 2 | "id": "ciscospark", |
3 | "name": "Cisco Spark", | 3 | "name": "Cisco Spark", |
4 | "version": "1.1.2", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://web.ciscospark.com", | 7 | "serviceURL": "https://web.ciscospark.com", |
diff --git a/recipes/ciscospark/webview.js b/recipes/ciscospark/webview.js index 9cc66b2..4af8a2d 100644 --- a/recipes/ciscospark/webview.js +++ b/recipes/ciscospark/webview.js | |||
@@ -2,7 +2,7 @@ const _path = _interopRequireDefault(require('path')); | |||
2 | 2 | ||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
4 | 4 | ||
5 | module.exports = Ferdi => { | 5 | module.exports = Ferdium => { |
6 | const UNREAD_BADGE_SELECTOR = '.navigation-item--badgeCount'; | 6 | const UNREAD_BADGE_SELECTOR = '.navigation-item--badgeCount'; |
7 | 7 | ||
8 | const getMessages = () => { | 8 | const getMessages = () => { |
@@ -11,16 +11,16 @@ module.exports = Ferdi => { | |||
11 | 11 | ||
12 | const elements = document.querySelectorAll('.navigation-bar-list .listItemWrapper'); | 12 | const elements = document.querySelectorAll('.navigation-bar-list .listItemWrapper'); |
13 | if (elements.length > 0 && elements[1].querySelector(UNREAD_BADGE_SELECTOR)) { | 13 | if (elements.length > 0 && elements[1].querySelector(UNREAD_BADGE_SELECTOR)) { |
14 | directCount = Ferdi.safeParseInt(elements[1].querySelector(UNREAD_BADGE_SELECTOR).textContent); | 14 | directCount = Ferdium.safeParseInt(elements[1].querySelector(UNREAD_BADGE_SELECTOR).textContent); |
15 | } | 15 | } |
16 | if (elements.length > 1 && elements[2].querySelector(UNREAD_BADGE_SELECTOR)) { | 16 | if (elements.length > 1 && elements[2].querySelector(UNREAD_BADGE_SELECTOR)) { |
17 | indirectCount = Ferdi.safeParseInt(elements[2].querySelector(UNREAD_BADGE_SELECTOR).textContent); | 17 | indirectCount = Ferdium.safeParseInt(elements[2].querySelector(UNREAD_BADGE_SELECTOR).textContent); |
18 | } | 18 | } |
19 | 19 | ||
20 | Ferdi.setBadge(directCount, indirectCount); | 20 | Ferdium.setBadge(directCount, indirectCount); |
21 | }; | 21 | }; |
22 | 22 | ||
23 | Ferdi.loop(getMessages); | 23 | Ferdium.loop(getMessages); |
24 | 24 | ||
25 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 25 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
26 | }; | 26 | }; |