Reverted chrome added to BROWSER_NAME
This commit is contained in:
@@ -1233,7 +1233,7 @@ OpenLayers.Util.pagePosition = function(forElement) {
|
||||
var browser = OpenLayers.BROWSER_NAME;
|
||||
|
||||
// opera & (safari absolute) incorrectly account for body offsetTop
|
||||
if (browser == "opera" || ((browser == "safari" || browser == "chrome") &&
|
||||
if (browser == "opera" || (browser == "safari" &&
|
||||
OpenLayers.Element.getStyle(forElement, 'position') == 'absolute')) {
|
||||
pos[1] -= document.body.offsetTop;
|
||||
}
|
||||
@@ -1439,22 +1439,13 @@ OpenLayers.Util.removeTail = function(url) {
|
||||
return head;
|
||||
};
|
||||
|
||||
/**
|
||||
* Constant: IS_WEBKIT
|
||||
* {Boolean} True if the userAgent reports the browser to use the WebKit engine
|
||||
*/
|
||||
OpenLayers.IS_WEBKIT = (function() {
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
return ua.indexOf("webkit") !== -1;
|
||||
})();
|
||||
|
||||
/**
|
||||
* Constant: IS_GECKO
|
||||
* {Boolean} True if the userAgent reports the browser to use the Gecko engine
|
||||
*/
|
||||
OpenLayers.IS_GECKO = (function() {
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
return !OpenLayers.IS_WEBKIT && ua.indexOf("gecko") !== -1;
|
||||
return ua.indexOf("webkit") == -1 && ua.indexOf("gecko") != -1;
|
||||
})();
|
||||
|
||||
/**
|
||||
@@ -1484,8 +1475,6 @@ OpenLayers.BROWSER_NAME = (function() {
|
||||
name = "opera";
|
||||
} else if (ua.indexOf("msie") != -1) {
|
||||
name = "msie";
|
||||
} else if(ua.indexOf("chrome") != -1) {
|
||||
name = "chrome";
|
||||
} else if (ua.indexOf("safari") != -1) {
|
||||
name = "safari";
|
||||
} else if (ua.indexOf("mozilla") != -1) {
|
||||
|
||||
Reference in New Issue
Block a user