diff options
-rw-r--r-- | all.json | 2 | ||||
-rw-r--r-- | gmail.tar.gz | bin | 65356 -> 65083 bytes | |||
-rw-r--r-- | uncompressed/gmail/README.md | 4 | ||||
-rw-r--r-- | uncompressed/gmail/index.js | 8 | ||||
-rw-r--r-- | uncompressed/gmail/package.json | 2 | ||||
-rw-r--r-- | uncompressed/gmail/webview.js | 5 |
6 files changed, 15 insertions, 6 deletions
@@ -136,7 +136,7 @@ | |||
136 | "featured": false, | 136 | "featured": false, |
137 | "id": "gmail", | 137 | "id": "gmail", |
138 | "name": "Gmail", | 138 | "name": "Gmail", |
139 | "version": "1.2.0", | 139 | "version": "1.2.1", |
140 | "icons": { | 140 | "icons": { |
141 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.png", | 141 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.png", |
142 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.svg" | 142 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.svg" |
diff --git a/gmail.tar.gz b/gmail.tar.gz index 13eb348..d02bcc5 100644 --- a/gmail.tar.gz +++ b/gmail.tar.gz | |||
Binary files differ | |||
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 @@ | |||
1 | # Gmail for Franz | 1 | # Gmail for Franz/Ferdi |
2 | This is the official Franz recipe for Gmail | 2 | This is an edited version of the official Franz recipe for Gmail |
3 | 3 | ||
4 | ### How to create your own Franz recipes: | 4 | ### How to create your own Franz recipes: |
5 | * [Read the documentation](https://github.com/meetfranz/plugins) | 5 | * [Read the documentation](https://github.com/meetfranz/plugins) |
diff --git a/uncompressed/gmail/index.js b/uncompressed/gmail/index.js index 46f936f..e0d8165 100644 --- a/uncompressed/gmail/index.js +++ b/uncompressed/gmail/index.js | |||
@@ -1,2 +1,6 @@ | |||
1 | // just pass through Franz | 1 | module.exports = Franz => |
2 | module.exports = Franz => Franz; | 2 | class Gmail extends Franz { |
3 | overrideUserAgent() { | ||
4 | return "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"; | ||
5 | } | ||
6 | }; | ||
diff --git a/uncompressed/gmail/package.json b/uncompressed/gmail/package.json index 7546d19..f95bfbc 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.0", | 4 | "version": "1.2.1", |
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 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 | ||