Skip to content

Commit

Permalink
Workaround for #84
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Dec 9, 2016
1 parent 78afa6e commit ac5fd1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ac5fd1b

Please sign in to comment.