Skip to content

Commit

Permalink
protect against options parameter not being supplied, as in L.tileLay…
Browse files Browse the repository at this point in the history
…er.grayscale(url);
  • Loading branch information
nadgerz committed Oct 31, 2017
1 parent 54d1fc8 commit c7c1f52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TileLayer.Grayscale.js
Expand Up @@ -14,6 +14,7 @@ L.TileLayer.Grayscale = L.TileLayer.extend({
},

initialize: function (url, options) {
options = options || {}
options.crossOrigin = true;
L.TileLayer.prototype.initialize.call(this, url, options);

Expand Down

0 comments on commit c7c1f52

Please sign in to comment.