diff options
Diffstat (limited to 'recipes/kaizala')
-rw-r--r-- | recipes/kaizala/index.js | 19 | ||||
-rw-r--r-- | recipes/kaizala/webview.js | 4 |
2 files changed, 9 insertions, 14 deletions
diff --git a/recipes/kaizala/index.js b/recipes/kaizala/index.js index f9b8099..f122bf4 100644 --- a/recipes/kaizala/index.js +++ b/recipes/kaizala/index.js | |||
@@ -1,11 +1,8 @@ | |||
1 | "use strict"; | 1 | module.exports = (Franz) => class Messenger extends Franz { |
2 | 2 | overrideUserAgent() { | |
3 | module.exports = (Franz) => | 3 | return window.navigator.userAgent.replace( |
4 | class Messenger extends Franz { | 4 | /(Ferdi|Electron)\/\S+ \([^)]+\)/g, |
5 | overrideUserAgent() { | 5 | '', |
6 | return window.navigator.userAgent.replace( | 6 | ); |
7 | /(Ferdi|Electron)\/\S+ \([^)]+\)/g, | 7 | } |
8 | "" | 8 | }; |
9 | ); | ||
10 | } | ||
11 | }; | ||
diff --git a/recipes/kaizala/webview.js b/recipes/kaizala/webview.js index f77b276..f370ff1 100644 --- a/recipes/kaizala/webview.js +++ b/recipes/kaizala/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 | const count = document.querySelectorAll('.unseen-msg-count').length; | 3 | const count = document.querySelectorAll('.unseen-msg-count').length; |
@@ -7,4 +5,4 @@ module.exports = Franz => { | |||
7 | }; | 5 | }; |
8 | 6 | ||
9 | Franz.loop(getMessages); | 7 | Franz.loop(getMessages); |
10 | }; \ No newline at end of file | 8 | }; |