diff options
Diffstat (limited to 'recipes/nextcloud-news/webview.js')
-rw-r--r-- | recipes/nextcloud-news/webview.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/nextcloud-news/webview.js b/recipes/nextcloud-news/webview.js index 7c1c65c..c5e295e 100644 --- a/recipes/nextcloud-news/webview.js +++ b/recipes/nextcloud-news/webview.js | |||
@@ -4,17 +4,17 @@ 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 getMessages = () => { | 8 | const getMessages = () => { |
9 | const selector = document.querySelector( | 9 | const selector = document.querySelector( |
10 | '.subscriptions-feed .app-navigation-entry-utils-counter', | 10 | '.subscriptions-feed .app-navigation-entry-utils-counter', |
11 | ); | 11 | ); |
12 | const direct = selector ? Ferdi.safeParseInt(selector.textContent) : 0; | 12 | const direct = selector ? Ferdium.safeParseInt(selector.textContent) : 0; |
13 | 13 | ||
14 | Ferdi.setBadge(direct); | 14 | Ferdium.setBadge(direct); |
15 | }; | 15 | }; |
16 | 16 | ||
17 | Ferdi.loop(getMessages); | 17 | Ferdium.loop(getMessages); |
18 | 18 | ||
19 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 19 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
20 | }; | 20 | }; |