diff options
author | 2021-09-19 07:26:25 +0530 | |
---|---|---|
committer | 2021-09-19 09:11:55 +0530 | |
commit | 7517a409a1a502c747eb4598492a88cec4e8d58c (patch) | |
tree | 7b6b603b0831845ac07fe6ab8e4c52bf19c8e850 /recipes/canvas/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/canvas/webview.js')
-rw-r--r-- | recipes/canvas/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/canvas/webview.js b/recipes/canvas/webview.js index 1bd3c84..a70f448 100644 --- a/recipes/canvas/webview.js +++ b/recipes/canvas/webview.js | |||
@@ -4,7 +4,7 @@ module.exports = Ferdi => { | |||
4 | 4 | ||
5 | const MessageElement = document.querySelector('[id=global_nav_conversations_link]'); | 5 | const MessageElement = document.querySelector('[id=global_nav_conversations_link]'); |
6 | if (MessageElement) { | 6 | if (MessageElement) { |
7 | direct += MessageElement.innerHTML; | 7 | direct += Ferdi.safeParseInt(MessageElement.innerHTML); |
8 | } | 8 | } |
9 | 9 | ||
10 | Ferdi.setBadge(direct); | 10 | Ferdi.setBadge(direct); |