diff options
author | 2021-09-19 07:26:25 +0530 | |
---|---|---|
committer | 2021-09-19 09:11:55 +0530 | |
commit | 7517a409a1a502c747eb4598492a88cec4e8d58c (patch) | |
tree | 7b6b603b0831845ac07fe6ab8e4c52bf19c8e850 /recipes/facebookpages/webview.js | |
parent | Merge pull request #713 from kris7t/fix-api-access (diff) | |
download | ferdium-recipes-7517a409a1a502c747eb4598492a88cec4e8d58c.tar.gz ferdium-recipes-7517a409a1a502c747eb4598492a88cec4e8d58c.tar.zst ferdium-recipes-7517a409a1a502c747eb4598492a88cec4e8d58c.zip |
fix: fix js error; styling
Diffstat (limited to 'recipes/facebookpages/webview.js')
-rw-r--r-- | recipes/facebookpages/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/facebookpages/webview.js b/recipes/facebookpages/webview.js index 1cc75c6..45f4e95 100644 --- a/recipes/facebookpages/webview.js +++ b/recipes/facebookpages/webview.js | |||
@@ -1,5 +1,5 @@ | |||
1 | module.exports = (Ferdi, options) => { | 1 | module.exports = (Ferdi, options) => { |
2 | const getMessages = function getMessages() { | 2 | const getMessages = () => { |
3 | let messages = 0; | 3 | let messages = 0; |
4 | const element = document.querySelector('[data-testid="message_count"] span'); | 4 | const element = document.querySelector('[data-testid="message_count"] span'); |
5 | 5 | ||
@@ -19,7 +19,7 @@ module.exports = (Ferdi, options) => { | |||
19 | localStorage.removeItem('franz-needsRedirect'); | 19 | localStorage.removeItem('franz-needsRedirect'); |
20 | } | 20 | } |
21 | } else { | 21 | } else { |
22 | localStorage.setItem('franz-needsRedirect', true); | 22 | localStorage.setItem('franz-needsRedirect', 'true'); |
23 | } | 23 | } |
24 | }, 500); | 24 | }, 500); |
25 | }; | 25 | }; |