From 6597a6e108cd94bcabc2dec6963a7225dd279b39 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 25 Oct 2016 21:41:34 -0400 Subject: [PATCH] Don't cache browser detection anymore in Mapillary service This means we can mock the useragent and test signsSupported --- modules/services/mapillary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/mapillary.js b/modules/services/mapillary.js index 2be4ba2b5..e30ccd34c 100644 --- a/modules/services/mapillary.js +++ b/modules/services/mapillary.js @@ -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')); },