aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/twitch/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/twitch/webview.js')
-rw-r--r--recipes/twitch/webview.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes/twitch/webview.js b/recipes/twitch/webview.js
index 0652545..6778fcd 100644
--- a/recipes/twitch/webview.js
+++ b/recipes/twitch/webview.js
@@ -1,8 +1,16 @@
1module.exports = (Ferdium) => { 1function _interopRequireDefault(obj) {
2 return obj && obj.__esModule ? obj : { default: obj };
3}
4
5const _path = _interopRequireDefault(require('path'));
6
7module.exports = Ferdium => {
2 const getMessages = () => { 8 const getMessages = () => {
3 const mentions = document.querySelectorAll('.chat-line .mentioned').length; 9 const mentions = document.querySelectorAll('.chat-line .mentioned').length;
4 Ferdium.setBadge(mentions, 0); 10 Ferdium.setBadge(mentions, 0);
5 }; 11 };
6 12
7 Ferdium.loop(getMessages); 13 Ferdium.loop(getMessages);
14
15 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
8}; 16};