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

Add support for Edge on non-Windows OS #22

Merged
merged 2 commits into from
Feb 18, 2021

Conversation

hollandmatt
Copy link

Edge is now available on Mac, but "useragent" currently reports it as Windows. This PR adds support for OSes other than Windows.

Copy link
Member

@ziggythehamster ziggythehamster left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! I just have some spec feedback, and then I can merge and cut a release and package it.

it "should return 'Windows 10' as its os" do
expect(@useragent.os).to eq("Windows 10")
end
end

describe "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36 Edg/88.0.705.56" do
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a spec for the Android and ChromeOS user agents as well?

Copy link
Author

Choose a reason for hiding this comment

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

I've done Android and iOS - I didn't think Edge was available for ChromeOS, would have to do a little more hunting for a suitable user-agent string.

Copy link
Author

Choose a reason for hiding this comment

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

As far as I can tell, installing Edge on ChromeOS would mean installing the Android app, so I think the Android cases should suffice!

@ziggythehamster ziggythehamster merged commit 3764769 into art19:master Feb 18, 2021
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.

2 participants