Use no browser globals at all
This commit is contained in:
@@ -16,6 +16,7 @@ ol.BrowserFeature = {
|
||||
* @type {boolean}
|
||||
*/
|
||||
HAS_TOUCH: ol.ASSUME_TOUCH ||
|
||||
(goog.global.document && 'ontouchstart' in document.documentElement) ||
|
||||
(goog.global.document &&
|
||||
'ontouchstart' in goog.global.document.documentElement) ||
|
||||
!!(goog.global.navigator.msPointerEnabled)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user