aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/dropbox/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/dropbox/webview.js')
-rw-r--r--recipes/dropbox/webview.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/recipes/dropbox/webview.js b/recipes/dropbox/webview.js
index 12478d3..f8b38f6 100644
--- a/recipes/dropbox/webview.js
+++ b/recipes/dropbox/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 hasNotifications = document.querySelector(".dig-NotificationBadge"); 9 const hasNotifications = document.querySelector('.dig-NotificationBadge');
4 10
5 Ferdium.setBadge(0, hasNotifications ? 1 : 0); 11 Ferdium.setBadge(0, hasNotifications ? 1 : 0);
6 }; 12 };
7 Ferdium.loop(getMessages); 13 Ferdium.loop(getMessages);
14
15 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
8}; 16};