diff options
author | Bennett <hello@vantezzen.io> | 2020-03-21 08:51:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 08:51:54 +0100 |
commit | 6fec783c98a14c5efe076e0dae8f82ea926d05bb (patch) | |
tree | 9300f2c9414c93ab8d86bf574e0c91548cf0921e /uncompressed | |
parent | Fix heading hierarchy (diff) | |
parent | #69 Update GMail recipe (diff) | |
download | ferdium-recipes-6fec783c98a14c5efe076e0dae8f82ea926d05bb.tar.gz ferdium-recipes-6fec783c98a14c5efe076e0dae8f82ea926d05bb.tar.zst ferdium-recipes-6fec783c98a14c5efe076e0dae8f82ea926d05bb.zip |
Merge pull request #70 from getferdi/pr/69
Fix SAML login for GMail
Diffstat (limited to 'uncompressed')
-rw-r--r-- | uncompressed/gmail/package.json | 2 | ||||
-rw-r--r-- | uncompressed/gmail/webview.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/uncompressed/gmail/package.json b/uncompressed/gmail/package.json index 0ce9c64..daac7a3 100644 --- a/uncompressed/gmail/package.json +++ b/uncompressed/gmail/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "gmail", | 2 | "id": "gmail", |
3 | "name": "Gmail", | 3 | "name": "Gmail", |
4 | "version": "1.2.3", | 4 | "version": "1.3.0", |
5 | "description": "Gmail", | 5 | "description": "Gmail", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Stefan Malzner <stefan@adlk.io>", |
diff --git a/uncompressed/gmail/webview.js b/uncompressed/gmail/webview.js index 433d0cf..95d28e7 100644 --- a/uncompressed/gmail/webview.js +++ b/uncompressed/gmail/webview.js | |||
@@ -2,7 +2,7 @@ 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') { | 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 | ||