Skip to content

Instantly share code, notes, and snippets.

@matsubo
Created November 11, 2020 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsubo/3d4bb8c7292f7b7b2daf53d5a818c956 to your computer and use it in GitHub Desktop.
Save matsubo/3d4bb8c7292f7b7b2daf53d5a818c956 to your computer and use it in GitHub Desktop.
var os = require('os')
module.exports = Franz =>
class Gmail extends Franz {
overrideUserAgent() {
if (os.platform() == 'linux')
return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0"
else
return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36";
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment