aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/youtrack
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
commit97697e3d069972844b2912a93022f4a4904a40d6 (patch)
tree53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/youtrack
parentAllow any url in the custom-service to allow for sites like 'http://translate... (diff)
downloadferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/youtrack')
-rw-r--r--recipes/youtrack/webview.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/recipes/youtrack/webview.js b/recipes/youtrack/webview.js
index 2c53f1d..ef799ae 100644
--- a/recipes/youtrack/webview.js
+++ b/recipes/youtrack/webview.js
@@ -1,13 +1,11 @@
1"use strict"; 1const _path = _interopRequireDefault(require('path'));
2
3var _path = _interopRequireDefault(require("path"));
4 2
5function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6 4
7module.exports = Ferdi => { 5module.exports = Ferdi => {
8 const getMessages = function getMessages() { 6 const getMessages = function getMessages() {
9 const unread = document.querySelectorAll('.header__bell-wrapper_unread'); 7 const unread = document.querySelectorAll('.header__bell-wrapper_unread');
10 Ferdi.setBadge(unread.length>0 ? 1 : 0); 8 Ferdi.setBadge(unread.length > 0 ? 1 : 0);
11 }; 9 };
12 10
13 Ferdi.loop(getMessages); 11 Ferdi.loop(getMessages);