aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/confluence
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/confluence')
-rw-r--r--recipes/confluence/package.json2
-rw-r--r--recipes/confluence/webview.js16
2 files changed, 15 insertions, 3 deletions
diff --git a/recipes/confluence/package.json b/recipes/confluence/package.json
index 4d2c8cf..8996280 100644
--- a/recipes/confluence/package.json
+++ b/recipes/confluence/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "confluence", 2 "id": "confluence",
3 "name": "Confluence", 3 "name": "Confluence",
4 "version": "1.1.0", 4 "version": "1.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "hasCustomUrl": true 7 "hasCustomUrl": true
diff --git a/recipes/confluence/webview.js b/recipes/confluence/webview.js
index e5d319c..04da834 100644
--- a/recipes/confluence/webview.js
+++ b/recipes/confluence/webview.js
@@ -1,8 +1,20 @@
1function _interopRequireDefault(obj) {
2 return obj && obj.__esModule ? obj : { default: obj };
3}
4
5const _path = _interopRequireDefault(require('path'));
6
1module.exports = Ferdium => { 7module.exports = Ferdium => {
2 const getMessages = () => { 8 const getMessages = () => {
3 const unreadMessageCountElement = document.querySelector('#notifications-anchor .badge'); 9 const unreadMessageCountElement = document.querySelector(
4 const unreadMessagesCount = Ferdium.safeParseInt(unreadMessageCountElement.textContent); 10 '#notifications-anchor .badge',
11 );
12 const unreadMessagesCount = Ferdium.safeParseInt(
13 unreadMessageCountElement.textContent,
14 );
5 Ferdium.setBadge(unreadMessagesCount, 0); 15 Ferdium.setBadge(unreadMessagesCount, 0);
6 }; 16 };
7 Ferdium.loop(getMessages); 17 Ferdium.loop(getMessages);
18
19 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
8}; 20};