diff options
Diffstat (limited to 'recipes/gmail')
-rw-r--r-- | recipes/gmail/index.js | 7 | ||||
-rw-r--r-- | recipes/gmail/webview.js | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/recipes/gmail/index.js b/recipes/gmail/index.js index 309bb87..e1896e4 100644 --- a/recipes/gmail/index.js +++ b/recipes/gmail/index.js | |||
@@ -1,5 +1,4 @@ | |||
1 | var os = require('os') | 1 | const os = require('os'); |
2 | 2 | ||
3 | module.exports = Franz => | 3 | module.exports = Franz => class Gmail extends Franz { |
4 | class Gmail extends Franz { | 4 | }; |
5 | }; | ||
diff --git a/recipes/gmail/webview.js b/recipes/gmail/webview.js index a2c712e..681b36e 100644 --- a/recipes/gmail/webview.js +++ b/recipes/gmail/webview.js | |||
@@ -1,8 +1,8 @@ | |||
1 | const path = require("path"); | 1 | const path = require('path'); |
2 | 2 | ||
3 | module.exports = (Franz) => { | 3 | module.exports = (Franz) => { |
4 | // if the user is on gmail's landing page, go to the login page. | 4 | // if the user is on gmail's landing page, go to the login page. |
5 | if (location.hostname == 'www.google.com' && location.href.includes("gmail/about/")) { | 5 | if (location.hostname == 'www.google.com' && location.href.includes('gmail/about/')) { |
6 | location.href = 'https://accounts.google.com/AccountChooser?service=mail&continue=https://mail.google.com/mail/'; | 6 | location.href = 'https://accounts.google.com/AccountChooser?service=mail&continue=https://mail.google.com/mail/'; |
7 | } | 7 | } |
8 | 8 | ||