diff options
author | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/fleep/webview.js | |
parent | Allow any url in the custom-service to allow for sites like 'http://translate... (diff) | |
download | ferdium-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/fleep/webview.js')
-rw-r--r-- | recipes/fleep/webview.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/recipes/fleep/webview.js b/recipes/fleep/webview.js index f3d765d..46fe2c5 100644 --- a/recipes/fleep/webview.js +++ b/recipes/fleep/webview.js | |||
@@ -1,13 +1,11 @@ | |||
1 | "use strict"; | 1 | const _path = _interopRequireDefault(require('path')); |
2 | |||
3 | var _path = _interopRequireDefault(require("path")); | ||
4 | 2 | ||
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
6 | 4 | ||
7 | module.exports = Ferdi => { | 5 | module.exports = Ferdi => { |
8 | const getMessages = function getMessages() { | 6 | const getMessages = function getMessages() { |
9 | // Count number of conversations or teams with unread messages | 7 | // Count number of conversations or teams with unread messages |
10 | let count = document.querySelectorAll(".unread-count").length; | 8 | const count = document.querySelectorAll('.unread-count').length; |
11 | Ferdi.setBadge(count, 0); | 9 | Ferdi.setBadge(count, 0); |
12 | }; | 10 | }; |
13 | 11 | ||