aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/yandex-mail/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/yandex-mail/webview.js')
-rw-r--r--recipes/yandex-mail/webview.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes/yandex-mail/webview.js b/recipes/yandex-mail/webview.js
index b5a5156..4e62393 100644
--- a/recipes/yandex-mail/webview.js
+++ b/recipes/yandex-mail/webview.js
@@ -1,3 +1,9 @@
1function _interopRequireDefault(obj) {
2 return obj && obj.__esModule ? obj : { default: obj };
3}
4
5const _path = _interopRequireDefault(require('path'));
6
1module.exports = Ferdium => { 7module.exports = Ferdium => {
2 const getMessages = () => { 8 const getMessages = () => {
3 const button = document.querySelectorAll('[href="#unread"]')[0] ?? {}; 9 const button = document.querySelectorAll('[href="#unread"]')[0] ?? {};
@@ -7,4 +13,6 @@ module.exports = Ferdium => {
7 }; 13 };
8 14
9 Ferdium.loop(getMessages); 15 Ferdium.loop(getMessages);
16
17 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
10}; 18};