diff options
Diffstat (limited to 'recipes/jollor')
-rw-r--r-- | recipes/jollor/index.js | 3 | ||||
-rw-r--r-- | recipes/jollor/package.json | 2 | ||||
-rw-r--r-- | recipes/jollor/webview.js | 14 |
3 files changed, 10 insertions, 9 deletions
diff --git a/recipes/jollor/index.js b/recipes/jollor/index.js index 46f936f..23607bd 100644 --- a/recipes/jollor/index.js +++ b/recipes/jollor/index.js | |||
@@ -1,2 +1 @@ | |||
1 | // just pass through Franz | module.exports = Ferdi => Ferdi; | |
2 | module.exports = Franz => Franz; | ||
diff --git a/recipes/jollor/package.json b/recipes/jollor/package.json index a988d10..40c32b5 100644 --- a/recipes/jollor/package.json +++ b/recipes/jollor/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "jollor", | 2 | "id": "jollor", |
3 | "name": "jollor", | 3 | "name": "jollor", |
4 | "version": "1.0.2", | 4 | "version": "1.1.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://jollor.com", | 7 | "serviceURL": "https://jollor.com", |
diff --git a/recipes/jollor/webview.js b/recipes/jollor/webview.js index a575eab..5982ece 100644 --- a/recipes/jollor/webview.js +++ b/recipes/jollor/webview.js | |||
@@ -1,12 +1,14 @@ | |||
1 | const path = require('path'); | 1 | const _path = _interopRequireDefault(require('path')); |
2 | 2 | ||
3 | module.exports = (Franz, options) => { | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
4 | |||
5 | module.exports = (Ferdi) => { | ||
4 | function getMessages() { | 6 | function getMessages() { |
5 | const count = document.querySelector('.user-menu-message-item-count').innerHTML; | 7 | const count = document.querySelector('.user-menu-message-item-count').innerHTML; |
6 | 8 | Ferdi.setBadge(count); | |
7 | Franz.setBadge(count); | ||
8 | } | 9 | } |
9 | 10 | ||
10 | Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); | 11 | Ferdi.loop(getMessages); |
11 | Franz.loop(getMessages); | 12 | |
13 | Ferdi.injectCSS(_path.default.join(__dirname, 'css', 'franz.css')); | ||
12 | }; | 14 | }; |