diff options
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') { |