aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/dropbox/webview.js
diff options
context:
space:
mode:
authorLibravatar Tania R. Zúñiga <25267490+TanZng@users.noreply.github.com>2021-10-13 18:39:13 -0500
committerLibravatar GitHub <noreply@github.com>2021-10-14 05:09:13 +0530
commitb5ee4c5549125c1fdc61ad3f0f19f759f6bb5647 (patch)
tree989751e86baa63803be18c4a574088fe4a150a30 /recipes/dropbox/webview.js
parentMerged 'drive' into 'googledrive' recipe. (fixes #2055) (diff)
downloadferdium-recipes-b5ee4c5549125c1fdc61ad3f0f19f759f6bb5647.tar.gz
ferdium-recipes-b5ee4c5549125c1fdc61ad3f0f19f759f6bb5647.tar.zst
ferdium-recipes-b5ee4c5549125c1fdc61ad3f0f19f759f6bb5647.zip
Add Dropbox recipe #369 (#739)
Diffstat (limited to 'recipes/dropbox/webview.js')
-rw-r--r--recipes/dropbox/webview.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes/dropbox/webview.js b/recipes/dropbox/webview.js
new file mode 100644
index 0000000..0cfbc7d
--- /dev/null
+++ b/recipes/dropbox/webview.js
@@ -0,0 +1,16 @@
1var _path = _interopRequireDefault(require("path"));
2
3function _interopRequireDefault(obj) {
4 return obj && obj.__esModule ? obj : { default: obj };
5}
6
7module.exports = (Ferdi) => {
8 const getMessages = () => {
9 const hasNotifications = document.querySelector(".dig-NotificationBadge");
10
11 Ferdi.setBadge(0, hasNotifications ? 1 : 0);
12 };
13 Ferdi.loop(getMessages);
14
15 Ferdi.injectCSS(_path.default.join(__dirname, "service.css"));
16};