initial browser detection
This commit is contained in:
parent
a9884f2388
commit
a64b832e24
9
src/core/Browser.js
Normal file
9
src/core/Browser.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
(function() {
|
||||||
|
var ua = navigator.userAgent.toLowerCase();
|
||||||
|
|
||||||
|
L.Browser = {
|
||||||
|
ie: !!window.ActiveXObject,
|
||||||
|
ie6: !!window.ActiveXObject && !window.XMLHttpRequest,
|
||||||
|
webkit: ua.indexOf("webkit") != -1
|
||||||
|
};
|
||||||
|
})();
|
Loading…
Reference in New Issue
Block a user