diff options
author | 2019-11-26 16:31:01 +0100 | |
---|---|---|
committer | 2019-11-26 16:31:01 +0100 | |
commit | 88218fdc6d9404e44466a2e91b778caab546c0a2 (patch) | |
tree | 000b7649844cdf5387e2bac1cccf674b6022426f /uncompressed/gmail/webview.js | |
parent | Merge branch 'master' of https://github.com/getferdi/recipes (diff) | |
download | ferdium-recipes-88218fdc6d9404e44466a2e91b778caab546c0a2.tar.gz ferdium-recipes-88218fdc6d9404e44466a2e91b778caab546c0a2.tar.zst ferdium-recipes-88218fdc6d9404e44466a2e91b778caab546c0a2.zip |
Updated Gmail recipe
Diffstat (limited to 'uncompressed/gmail/webview.js')
-rw-r--r-- | uncompressed/gmail/webview.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/uncompressed/gmail/webview.js b/uncompressed/gmail/webview.js index febf64b..25727a4 100644 --- a/uncompressed/gmail/webview.js +++ b/uncompressed/gmail/webview.js | |||
@@ -1,6 +1,11 @@ | |||
1 | import path from 'path'; | 1 | import path from '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. | ||
5 | if (location.hostname == 'www.google.com') { | ||
6 | location.href = 'https://accounts.google.com/AccountChooser?service=mail&continue=https://mail.google.com/mail/'; | ||
7 | } | ||
8 | |||
4 | const getMessages = function getMessages() { | 9 | const getMessages = function getMessages() { |
5 | let count = 0; | 10 | let count = 0; |
6 | 11 | ||