diff options
author | 2021-10-05 17:04:09 +0200 | |
---|---|---|
committer | 2021-10-05 17:04:09 +0200 | |
commit | d3841b766f9d37d557646003899f67525c5f755f (patch) | |
tree | 1bcab990c94f2b05678b7a83ffebe08298500f0b /recipes/pulsesms/webview.js | |
parent | chore: repo maintenance (#732) (diff) | |
download | ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.gz ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.zst ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.zip |
chore: add eslint-plugin-unicorn (#733)
Diffstat (limited to 'recipes/pulsesms/webview.js')
-rw-r--r-- | recipes/pulsesms/webview.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/recipes/pulsesms/webview.js b/recipes/pulsesms/webview.js index 48bb2ad..d6d123c 100644 --- a/recipes/pulsesms/webview.js +++ b/recipes/pulsesms/webview.js | |||
@@ -1,7 +1,9 @@ | |||
1 | module.exports = (Ferdi) => { | 1 | module.exports = Ferdi => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | Ferdi.setBadge(document.querySelector('#unread_count').innerHTML.replace(/\s/g, '')); | 3 | Ferdi.setBadge( |
4 | } | 4 | document.querySelector('#unread_count').textContent.replace(/\s/g, ''), |
5 | ); | ||
6 | }; | ||
5 | 7 | ||
6 | Ferdi.loop(getMessages); | 8 | Ferdi.loop(getMessages); |
7 | }; | 9 | }; |