Common place to store browser features
The ol.BrowserFeature object is supposed to provide all detected browser features in a central place.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
goog.provide('ol.BrowserFeature');
|
||||
|
||||
|
||||
/**
|
||||
* @type {Object}
|
||||
*/
|
||||
ol.BrowserFeature = {
|
||||
// Do we have touch events?
|
||||
HAS_TOUCH: document && 'ontouchstart' in document.documentElement
|
||||
};
|
||||
Reference in New Issue
Block a user