aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/drive/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2021-10-12 05:17:05 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2021-10-12 05:17:05 +0530
commit3acb0f0eed5784d25c0f8396362049942c2742fb (patch)
treef20b5bcad969fe9dbda92457017a5c1dc40c68bc /recipes/drive/webview.js
parentAdd Meetup recipe #389 (#735) (diff)
downloadferdium-recipes-3acb0f0eed5784d25c0f8396362049942c2742fb.tar.gz
ferdium-recipes-3acb0f0eed5784d25c0f8396362049942c2742fb.tar.zst
ferdium-recipes-3acb0f0eed5784d25c0f8396362049942c2742fb.zip
Merged 'drive' into 'googledrive' recipe. (fixes #2055)
Diffstat (limited to 'recipes/drive/webview.js')
-rw-r--r--recipes/drive/webview.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/recipes/drive/webview.js b/recipes/drive/webview.js
deleted file mode 100644
index cc1ed84..0000000
--- a/recipes/drive/webview.js
+++ /dev/null
@@ -1,20 +0,0 @@
1const _path = _interopRequireDefault(require('path'));
2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4
5module.exports = (Ferdi) => {
6 const getMessages = () => {
7 let direct = 0;
8 let indirect = 0;
9 const data = document.querySelector('#FranzMessages').dataset;
10 if (data) {
11 direct = data.direct;
12 indirect = data.indirect;
13 }
14
15 Ferdi.setBadge(direct, indirect);
16 }
17
18 Ferdi.loop(getMessages);
19 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
20}