Browser plugin: Don't rely on userAgent

Currently the browser plugin for Zotero relies on user agent sniffing for some features.
One side effect of that is, that if I'm debugging an unrelated website with Chrome's device simulator being active (which also modifies the user agent), I receive multiple errors in the developer console ("Uncaught ReferenceError: safari is not defined") generated by this extension.
An (additional) check whether `window.safari` is set would be way nicer - or even separate build configurations for separate browsers, in order to get completely rid of user agent sniffing.
Independently, thank you for your work!
Sign In or Register to comment.