aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/fastmail
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-27 18:13:24 +0530
committerLibravatar GitHub <noreply@github.com>2021-08-27 18:13:24 +0530
commit155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch)
treed144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/fastmail
parentdocs: fixed template file for creating recipe. (diff)
downloadferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.gz
ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.zst
ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.zip
chore: normalized all recipes to ensure compatibility with es6 (#639)
- Removed some calls to set badge with '0' all the time. - Removed all 'sourceMaps' since they are all outdated atm.
Diffstat (limited to 'recipes/fastmail')
-rw-r--r--recipes/fastmail/index.js3
-rw-r--r--recipes/fastmail/package.json2
-rw-r--r--recipes/fastmail/webview.js13
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 @@
1module.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 @@
1const path = require('path'); 1const _path = _interopRequireDefault(require('path'));
2 2
3module.exports = (Franz) => { 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4
5module.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};