aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/amazon-work-mail
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/amazon-work-mail')
-rw-r--r--recipes/amazon-work-mail/package.json2
-rw-r--r--recipes/amazon-work-mail/webview.js8
2 files changed, 9 insertions, 1 deletions
diff --git a/recipes/amazon-work-mail/package.json b/recipes/amazon-work-mail/package.json
index 4540f22..6266574 100644
--- a/recipes/amazon-work-mail/package.json
+++ b/recipes/amazon-work-mail/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "amazon-work-mail", 2 "id": "amazon-work-mail",
3 "name": "Amazon WorkMail", 3 "name": "Amazon WorkMail",
4 "version": "1.2.1", 4 "version": "1.3.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://{teamId}.awsapps.com/mail", 7 "serviceURL": "https://{teamId}.awsapps.com/mail",
diff --git a/recipes/amazon-work-mail/webview.js b/recipes/amazon-work-mail/webview.js
index 36967fd..0eeb323 100644
--- a/recipes/amazon-work-mail/webview.js
+++ b/recipes/amazon-work-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
1const reload = EventType => 7const reload = EventType =>
2 new Promise((resolve, reject) => { 8 new Promise((resolve, reject) => {
3 const btn = document.querySelectorAll('.giraffe-hierarchy-node-refresh')[0]; 9 const btn = document.querySelectorAll('.giraffe-hierarchy-node-refresh')[0];
@@ -30,4 +36,6 @@ module.exports = Ferdium => {
30 reload('click'); 36 reload('click');
31 }, 60_000); 37 }, 60_000);
32 } 38 }
39
40 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
33}; 41};