diff options
Diffstat (limited to 'recipes/fastmail')
-rw-r--r-- | recipes/fastmail/index.js | 3 | ||||
-rw-r--r-- | recipes/fastmail/package.json | 2 | ||||
-rw-r--r-- | recipes/fastmail/webview.js | 13 |
3 files changed, 10 insertions, 8 deletions
diff --git a/recipes/fastmail/index.js b/recipes/fastmail/index.js index 2d94af4..23607bd 100644 --- a/recipes/fastmail/index.js +++ b/recipes/fastmail/index.js | |||
@@ -1,2 +1 @@ | |||
1 | module.exports = Franz => Franz; | module.exports = Ferdi => Ferdi; | |
2 | // # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZhc3RtYWlsL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiZmFzdG1haWwvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 | ||
diff --git a/recipes/fastmail/package.json b/recipes/fastmail/package.json index b0ded8f..7a73acb 100644 --- a/recipes/fastmail/package.json +++ b/recipes/fastmail/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "fastmail", | 2 | "id": "fastmail", |
3 | "name": "FastMail", | 3 | "name": "FastMail", |
4 | "version": "2.0.2", | 4 | "version": "2.1.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://www.fastmail.com/mail/", | 7 | "serviceURL": "https://www.fastmail.com/mail/", |
diff --git a/recipes/fastmail/webview.js b/recipes/fastmail/webview.js index 5355dbe..46bad0d 100644 --- a/recipes/fastmail/webview.js +++ b/recipes/fastmail/webview.js | |||
@@ -1,15 +1,18 @@ | |||
1 | const path = require('path'); | 1 | const _path = _interopRequireDefault(require('path')); |
2 | 2 | ||
3 | module.exports = (Franz) => { | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
4 | |||
5 | module.exports = (Ferdi) => { | ||
4 | const getMessages = () => { | 6 | const getMessages = () => { |
5 | const inbox = document.querySelector('.v-MailboxSource--inbox .v-MailboxSource-badge'); | 7 | const inbox = document.querySelector('.v-MailboxSource--inbox .v-MailboxSource-badge'); |
6 | if (!inbox) { | 8 | if (!inbox) { |
7 | return; | 9 | return; |
8 | } | 10 | } |
9 | const messages = Number(inbox.innerText); | 11 | const messages = Number(inbox.innerText); |
10 | Franz.setBadge(messages); | 12 | Ferdi.setBadge(messages); |
11 | }; | 13 | }; |
12 | 14 | ||
13 | Franz.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js')); | 15 | Ferdi.loop(getMessages); |
14 | Franz.loop(getMessages); | 16 | |
17 | Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); | ||
15 | }; | 18 | }; |