From 88218fdc6d9404e44466a2e91b778caab546c0a2 Mon Sep 17 00:00:00 2001 From: Kasper Date: Tue, 26 Nov 2019 16:31:01 +0100 Subject: Updated Gmail recipe --- uncompressed/gmail/README.md | 4 ++-- uncompressed/gmail/webview.js | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'uncompressed') diff --git a/uncompressed/gmail/README.md b/uncompressed/gmail/README.md index 907f13c..1dcd235 100644 --- a/uncompressed/gmail/README.md +++ b/uncompressed/gmail/README.md @@ -1,5 +1,5 @@ -# Gmail for Franz -This is the official Franz recipe for Gmail +# Gmail for Franz/Ferdi +This is an edited version of the official Franz recipe for Gmail ### How to create your own Franz recipes: * [Read the documentation](https://github.com/meetfranz/plugins) 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 @@ import path from 'path'; module.exports = (Franz) => { + // if the user is on gmail's landing page, go to the login page. + if (location.hostname == 'www.google.com') { + location.href = 'https://accounts.google.com/AccountChooser?service=mail&continue=https://mail.google.com/mail/'; + } + const getMessages = function getMessages() { let count = 0; -- cgit v1.2.3-70-g09d2