platform_detect
platform_detect copied to clipboard
Add Brave Browser check
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