diff options
Diffstat (limited to 'recipes/hackmd')
-rw-r--r-- | recipes/hackmd/index.js | 2 | ||||
-rw-r--r-- | recipes/hackmd/package.json | 2 | ||||
-rw-r--r-- | recipes/hackmd/webview.js | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/recipes/hackmd/index.js b/recipes/hackmd/index.js index 3a2908b..5114772 100644 --- a/recipes/hackmd/index.js +++ b/recipes/hackmd/index.js | |||
@@ -1,2 +1,2 @@ | |||
1 | // todo allow custom url | 1 | // todo allow custom url |
2 | module.exports = Ferdi => class HackMd extends Ferdi {}; | 2 | module.exports = Ferdium => Ferdium; |
diff --git a/recipes/hackmd/package.json b/recipes/hackmd/package.json index 6a58405..24b790d 100644 --- a/recipes/hackmd/package.json +++ b/recipes/hackmd/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "hackmd", | 2 | "id": "hackmd", |
3 | "name": "HackMd", | 3 | "name": "HackMd", |
4 | "version": "1.1.1", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://hackmd.io", | 7 | "serviceURL": "https://hackmd.io", |
diff --git a/recipes/hackmd/webview.js b/recipes/hackmd/webview.js index 9ccf912..dbd4746 100644 --- a/recipes/hackmd/webview.js +++ b/recipes/hackmd/webview.js | |||
@@ -2,17 +2,17 @@ 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 getMessages = () => { | 6 | const getMessages = () => { |
7 | // get unread messages | 7 | // get unread messages |
8 | const count = document.querySelectorAll('.guilds-wrapper .badge').length; | 8 | const count = document.querySelectorAll('.guilds-wrapper .badge').length; |
9 | 9 | ||
10 | // set Ferdi badge | 10 | // set Ferdium badge |
11 | Ferdi.setBadge(count); | 11 | Ferdium.setBadge(count); |
12 | }; | 12 | }; |
13 | 13 | ||
14 | Ferdi.loop(getMessages); | 14 | Ferdium.loop(getMessages); |
15 | 15 | ||
16 | // Hide download message | 16 | // Hide download message |
17 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 17 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
18 | }; | 18 | }; |