diff --git a/src/core/Browser.js b/src/core/Browser.js new file mode 100644 index 00000000..c6695e42 --- /dev/null +++ b/src/core/Browser.js @@ -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 + }; +})(); \ No newline at end of file