diff options
Diffstat (limited to 'recipes/hostnet')
-rw-r--r-- | recipes/hostnet/package.json | 2 | ||||
-rw-r--r-- | recipes/hostnet/webview.js | 15 |
2 files changed, 15 insertions, 2 deletions
diff --git a/recipes/hostnet/package.json b/recipes/hostnet/package.json index 24487b8..f9391ab 100644 --- a/recipes/hostnet/package.json +++ b/recipes/hostnet/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "hostnet", | 2 | "id": "hostnet", |
3 | "name": "Hostnet", | 3 | "name": "Hostnet", |
4 | "version": "1.2.1", | 4 | "version": "1.3.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://appsuite.hostnet.nl/appsuite/" | 7 | "serviceURL": "https://appsuite.hostnet.nl/appsuite/" |
diff --git a/recipes/hostnet/webview.js b/recipes/hostnet/webview.js index 9a1266f..a2149d7 100644 --- a/recipes/hostnet/webview.js +++ b/recipes/hostnet/webview.js | |||
@@ -1,7 +1,20 @@ | |||
1 | function _interopRequireDefault(obj) { | ||
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
1 | module.exports = Ferdium => { | 7 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 8 | const getMessages = () => { |
3 | Ferdium.setBadge(Ferdium.safeParseInt(document.querySelectorAll('.badge.topbar-launcherbadge')[0].firstChild.data)); | 9 | Ferdium.setBadge( |
10 | Ferdium.safeParseInt( | ||
11 | document.querySelectorAll('.badge.topbar-launcherbadge')[0].firstChild | ||
12 | .data, | ||
13 | ), | ||
14 | ); | ||
4 | }; | 15 | }; |
5 | 16 | ||
6 | Ferdium.loop(getMessages); | 17 | Ferdium.loop(getMessages); |
18 | |||
19 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
7 | }; | 20 | }; |