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

Support newer Edge versions #90

Merged
merged 1 commit into from
Apr 3, 2020
Merged

Conversation

GramThanos
Copy link
Contributor

In newer versions of Edge (based on Chrome) the user agent is using the "Edg" code name instead of "Edge".

Example user agent of Edge Version 81.0.416.41 (Official Build) beta (64 bit)
Downloaded from https://www.microsoftedgeinsider.com/

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.83 Safari/537.36 Edg/81.0.416.41

Related issues #89

In newer versions of Edge the user agent is "Edg/..."
@cbschuld cbschuld merged commit 2eddd2a into cbschuld:master Apr 3, 2020
@cbschuld
Copy link
Owner

cbschuld commented Apr 3, 2020

Thanks @GramThanos !!

@clementmas
Copy link

This new code throws a warning with PHP 7.4:

PHP Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /[...]/vendor/cbschuld/browser.php/lib/Browser.php on line 909

Can you guys add these missing parenthesis? Or do you need a PR?

Thanks!

@GramThanos GramThanos deleted the edge-fix branch April 6, 2020 09:38
@GramThanos GramThanos restored the edge-fix branch April 6, 2020 09:40
@GramThanos GramThanos mentioned this pull request Apr 6, 2020
@cbschuld
Copy link
Owner

cbschuld commented Apr 6, 2020 via email

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.

None yet

3 participants