diff options
Diffstat (limited to 'recipes/mewe')
-rw-r--r-- | recipes/mewe/package.json | 2 | ||||
-rw-r--r-- | recipes/mewe/webview.js | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/recipes/mewe/package.json b/recipes/mewe/package.json index 0277666..87cfb71 100644 --- a/recipes/mewe/package.json +++ b/recipes/mewe/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "mewe", | 2 | "id": "mewe", |
3 | "name": "MeWe", | 3 | "name": "MeWe", |
4 | "version": "1.1.0", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://mewe.com/chat", | 7 | "serviceURL": "https://mewe.com/chat", |
diff --git a/recipes/mewe/webview.js b/recipes/mewe/webview.js index 0434d1c..314e9bb 100644 --- a/recipes/mewe/webview.js +++ b/recipes/mewe/webview.js | |||
@@ -1,9 +1,9 @@ | |||
1 | const _path = _interopRequireDefault(require('path')); | ||
2 | |||
3 | function _interopRequireDefault(obj) { | 1 | function _interopRequireDefault(obj) { |
4 | return obj && obj.__esModule ? obj : { default: obj }; | 2 | return obj && obj.__esModule ? obj : { default: obj }; |
5 | } | 3 | } |
6 | 4 | ||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
7 | module.exports = Ferdium => { | 7 | module.exports = Ferdium => { |
8 | const calculateTotalDirectMessages = () => | 8 | const calculateTotalDirectMessages = () => |
9 | [...document.querySelectorAll('.chats-list-element')] | 9 | [...document.querySelectorAll('.chats-list-element')] |
@@ -15,5 +15,6 @@ module.exports = Ferdium => { | |||
15 | .reduce((curr, prev) => curr + prev, 0); | 15 | .reduce((curr, prev) => curr + prev, 0); |
16 | 16 | ||
17 | Ferdium.loop(() => Ferdium.setBadge(calculateTotalDirectMessages())); | 17 | Ferdium.loop(() => Ferdium.setBadge(calculateTotalDirectMessages())); |
18 | |||
18 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | 19 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
19 | }; | 20 | }; |