Don't cache browser detection anymore in Mapillary service

This means we can mock the useragent and test signsSupported
This commit is contained in:
Bryan Housel
2016-10-25 21:41:34 -04:00
parent 0066204cfa
commit 6597a6e108

View File

@@ -18,7 +18,6 @@ var apibase = 'https://a.mapillary.com/v2/',
maxPages = 10,
tileZoom = 14,
dispatch = d3.dispatch('loadedImages', 'loadedSigns'),
detected = utilDetect(),
mapillaryCache,
mapillaryClicks,
mapillaryImage,
@@ -299,6 +298,7 @@ export default {
signsSupported: function() {
var detected = utilDetect();
return (!(detected.ie || detected.browser.toLowerCase() === 'safari'));
},