is.safari() returns true for Android UC browser
Closed this issue · 1 comments
heymartinadams commented
Probably because it’s using Safari’s rendering engine. Tested via https://www.browserstack.com/
heymartinadams commented
Perhaps test it via this method instead (source: https://stackoverflow.com/a/9851769/3962062):
var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification))
However, this doesn’t appear to be recognizing Safari mobile.