From ac5fd1b0aa1d0c5a286ba2dc243052f6306aa284 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Fri, 9 Dec 2016 10:51:57 -0500 Subject: [PATCH] Workaround for #84 --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index a549f9b..b246d69 100644 --- a/index.js +++ b/index.js @@ -249,6 +249,8 @@ module.exports = function leafletImage(map, callback) { } function addCacheString(url) { + // workaround for https://github.com/mapbox/leaflet-image/issues/84 + if (!url) return url; // If it's a data URL we don't want to touch this. if (isDataURL(url) || url.indexOf('mapbox.com/styles/v1') !== -1) { return url;