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/campuswire/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/campuswire/webview.js')
-rw-r--r-- | recipes/campuswire/webview.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/recipes/campuswire/webview.js b/recipes/campuswire/webview.js index f52fa46..b65f25a 100644 --- a/recipes/campuswire/webview.js +++ b/recipes/campuswire/webview.js | |||
@@ -1,5 +1,3 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => { | 1 | module.exports = Franz => { |
4 | const getMessages = function getMessages() { | 2 | const getMessages = function getMessages() { |
5 | let count = document.querySelectorAll('._5fx8:not(._569x),._1ht3:not(._569x)').length; | 3 | let count = document.querySelectorAll('._5fx8:not(._569x),._1ht3:not(._569x)').length; |
@@ -15,7 +13,7 @@ module.exports = Franz => { | |||
15 | Franz.loop(getMessages); | 13 | Franz.loop(getMessages); |
16 | localStorage.setItem('_cs_desktopNotifsEnabled', JSON.stringify({ | 14 | localStorage.setItem('_cs_desktopNotifsEnabled', JSON.stringify({ |
17 | __t: new Date().getTime(), | 15 | __t: new Date().getTime(), |
18 | __v: true | 16 | __v: true, |
19 | })); | 17 | })); |
20 | 18 | ||
21 | if (typeof Franz.onNotify === 'function') { | 19 | if (typeof Franz.onNotify === 'function') { |