aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/youtrack/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/youtrack/webview.js')
-rw-r--r--recipes/youtrack/webview.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes/youtrack/webview.js b/recipes/youtrack/webview.js
new file mode 100644
index 0000000..2c53f1d
--- /dev/null
+++ b/recipes/youtrack/webview.js
@@ -0,0 +1,14 @@
1"use strict";
2
3var _path = _interopRequireDefault(require("path"));
4
5function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6
7module.exports = Ferdi => {
8 const getMessages = function getMessages() {
9 const unread = document.querySelectorAll('.header__bell-wrapper_unread');
10 Ferdi.setBadge(unread.length>0 ? 1 : 0);
11 };
12
13 Ferdi.loop(getMessages);
14};