Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Edge UA for google sign-in #1119

Merged
merged 1 commit into from
Jul 10, 2020
Merged

Use Edge UA for google sign-in #1119

merged 1 commit into from
Jul 10, 2020

Conversation

PalmerAL
Copy link
Collaborator

@PalmerAL PalmerAL commented Jul 8, 2020

This is an attempt to fix #868, originally based on #893.

const url = new URL(details.url)

if (url.hostname === 'accounts.google.com') {
details.requestHeaders['User-Agent'] = newUserAgent + ' Edg/' + process.versions.chrome
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you miss the 'e' character at the end of ' Edg'?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's right, actually! The old Edge uses "Edge", the new Chromium-based one just uses "Edg" to avoid being confused with the old one.

@PalmerAL PalmerAL merged commit 936a1ea into master Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't Sign Into Gmail
2 participants