diff options
author | 2021-10-12 05:17:05 +0530 | |
---|---|---|
committer | 2021-10-12 05:17:05 +0530 | |
commit | 3acb0f0eed5784d25c0f8396362049942c2742fb (patch) | |
tree | f20b5bcad969fe9dbda92457017a5c1dc40c68bc /recipes/drive/webview.js | |
parent | Add Meetup recipe #389 (#735) (diff) | |
download | ferdium-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.js | 20 |
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 @@ | |||
1 | const _path = _interopRequireDefault(require('path')); | ||
2 | |||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
4 | |||
5 | module.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 | } | ||