aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nextcloud
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/nextcloud
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/nextcloud')
-rw-r--r--recipes/nextcloud/index.js2
-rw-r--r--recipes/nextcloud/webview.js8
2 files changed, 3 insertions, 7 deletions
diff --git a/recipes/nextcloud/index.js b/recipes/nextcloud/index.js
index 4e772d7..798a4d7 100644
--- a/recipes/nextcloud/index.js
+++ b/recipes/nextcloud/index.js
@@ -1,5 +1,3 @@
1"use strict";
2
3module.exports = Franz => class Nextcloud extends Franz { 1module.exports = Franz => class Nextcloud extends Franz {
4 buildUrl(url) { 2 buildUrl(url) {
5 return `${url}/`; 3 return `${url}/`;
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"; 1const _path = _interopRequireDefault(require('path'));
2
3var _path = _interopRequireDefault(require("path"));
4 2
5function _interopRequireDefault(obj) { 3function _interopRequireDefault(obj) {
6 return obj && obj.__esModule ? obj : {default: obj}; 4 return obj && obj.__esModule ? obj : { default: obj };
7} 5}
8 6
9module.exports = Franz => { 7module.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);