diff options
author | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/gmail | |
parent | Allow any url in the custom-service to allow for sites like 'http://translate... (diff) | |
download | ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip |
Fixed eslintrc as root for this folder; Reformatted all files.
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 | ||