diff options
author | 2021-07-31 15:28:23 +0530 | |
---|---|---|
committer | 2021-07-31 15:28:23 +0530 | |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/nextcloud/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/nextcloud/webview.js')
-rw-r--r-- | recipes/nextcloud/webview.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/recipes/nextcloud/webview.js b/recipes/nextcloud/webview.js index b7589de..4a90bb1 100644 --- a/recipes/nextcloud/webview.js +++ b/recipes/nextcloud/webview.js | |||
@@ -1,15 +1,13 @@ | |||
1 | "use strict"; | 1 | const _path = _interopRequireDefault(require('path')); |
2 | |||
3 | var _path = _interopRequireDefault(require("path")); | ||
4 | 2 | ||
5 | function _interopRequireDefault(obj) { | 3 | function _interopRequireDefault(obj) { |
6 | return obj && obj.__esModule ? obj : {default: obj}; | 4 | return obj && obj.__esModule ? obj : { default: obj }; |
7 | } | 5 | } |
8 | 6 | ||
9 | module.exports = Franz => { | 7 | module.exports = Franz => { |
10 | const getMessages = function getMessages() { | 8 | const getMessages = function getMessages() { |
11 | const direct = document.querySelectorAll( | 9 | const direct = document.querySelectorAll( |
12 | '.notifications .notification-container .notification-wrapper li .notification' | 10 | '.notifications .notification-container .notification-wrapper li .notification', |
13 | ).length; | 11 | ).length; |
14 | 12 | ||
15 | Franz.setBadge(direct); | 13 | Franz.setBadge(direct); |