forked from meetfranz/recipe-gmail
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
// just pass through Franz | ||
module.exports = Franz => Franz; | ||
"use strict"; | ||
|
||
// module.exports = Franz => Franz; | ||
module.exports = Franz => class Gmail extends Franz { | ||
overrideUserAgent() { | ||
const userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36"; | ||
|
||
return userAgent; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,13 @@ | |
"description": "Gmail", | ||
"main": "index.js", | ||
"author": "Stefan Malzner <[email protected]>", | ||
"contributors": ["Adam Pine <[email protected]>"], | ||
"license": "MIT", | ||
"repository": "https://github.com/meetfranz/recipe-gmail", | ||
"config": { | ||
"serviceURL": "https://mail.google.com" | ||
"serviceURL": "https://mail.google.com", | ||
"serviceName": "Gmail", | ||
"hasNotificationSound": true, | ||
"message": "You must login before you close Franz to ensure this service is able to be configured (otherwise it goes to the wrong url)" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters