osrm-backend/WebContent/OSRM.Browser.js

13 lines
291 B
JavaScript
Raw Normal View History

2012-03-09 03:24:51 -05:00
// OSRM browser detection
(function() {
var useragent = navigator.userAgent;
OSRM.Browser = {
FF3: useragent.search(/Firefox\/3/),
IE6_9: useragent.search(/MSIE (6|7|8|9)/),
2012-03-09 03:24:51 -05:00
};
}());
// (runs anonymous function to prevent local variables cluttering global namespace)