mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Don't cache browser detection anymore in Mapillary service
This means we can mock the useragent and test signsSupported
This commit is contained in:
@@ -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'));
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user