platform_detect icon indicating copy to clipboard operation
platform_detect copied to clipboard

Add Brave Browser check

Open JulianKowalczuk opened this issue 3 years ago • 0 comments

Brave Browser uses same name and user agent like Chrome.

Since Brave is quite popular alternative to Chrome, it would be nice to handle that, because even tough, many Web APIs in Brave are restricted (like SpeechRecognition API, thats why I need Your package to check that)

The solution is described below: (navigator.brave && await navigator.brave.isBrave() || false) https://www.ctrl.blog/entry/brave-user-agent-detection.html

I found similar package to Your one and created similar issue.

I think good option would be merging You packages into one.

https://github.com/tomaschyly/web_browser_detect

JulianKowalczuk avatar Jul 05 '21 21:07 JulianKowalczuk