diff options
author | 2022-04-18 06:51:50 -0500 | |
---|---|---|
committer | 2022-04-18 06:51:50 -0500 | |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/mewe/webview.js | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip |
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/mewe/webview.js')
-rw-r--r-- | recipes/mewe/webview.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/mewe/webview.js b/recipes/mewe/webview.js index 84438f2..0434d1c 100644 --- a/recipes/mewe/webview.js +++ b/recipes/mewe/webview.js | |||
@@ -4,16 +4,16 @@ function _interopRequireDefault(obj) { | |||
4 | return obj && obj.__esModule ? obj : { default: obj }; | 4 | return obj && obj.__esModule ? obj : { default: obj }; |
5 | } | 5 | } |
6 | 6 | ||
7 | module.exports = Ferdi => { | 7 | module.exports = Ferdium => { |
8 | const calculateTotalDirectMessages = () => | 8 | const calculateTotalDirectMessages = () => |
9 | [...document.querySelectorAll('.chats-list-element')] | 9 | [...document.querySelectorAll('.chats-list-element')] |
10 | .map(el => | 10 | .map(el => |
11 | Ferdi.safeParseInt( | 11 | Ferdium.safeParseInt( |
12 | el.querySelector('.m-indicator .number').textContent, | 12 | el.querySelector('.m-indicator .number').textContent, |
13 | ), | 13 | ), |
14 | ) | 14 | ) |
15 | .reduce((curr, prev) => curr + prev, 0); | 15 | .reduce((curr, prev) => curr + prev, 0); |
16 | 16 | ||
17 | Ferdi.loop(() => Ferdi.setBadge(calculateTotalDirectMessages())); | 17 | Ferdium.loop(() => Ferdium.setBadge(calculateTotalDirectMessages())); |
18 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 18 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
19 | }; | 19 | }; |