Don't identify Chrome as Safari

This commit is contained in:
Ivan Kozik 2015-04-20 15:28:38 +00:00
parent 1ad8489c65
commit 4265d17f8e

View File

@ -508,7 +508,8 @@ var getQueryArgs = function() {
return intoObject(pairs.map(function(e) { return split(e, "=", 1); }));
};
var isSafari = navigator.userAgent.indexOf("Safari") != -1;
var isChrome = navigator.userAgent.indexOf("Chrome/") != -1;
var isSafari = !isChrome && navigator.userAgent.indexOf("Safari") != -1;
var isFirefox = navigator.userAgent.indexOf("Firefox") != -1;
var addAnyChangeListener = function(elem, func) {