Skip to content

Commit

Permalink
Actually assign the replaced path for the default icon (Leaflet#5580)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanSanchez authored and perliedman committed Jun 26, 2017
1 parent 35e7c4b commit 3fae3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/marker/Icon.Default.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export var IconDefault = Icon.extend({
if (path === null || path.indexOf('url') !== 0) {
path = '';
} else {
path.replace(/^url\([\"\']?/, '').replace(/marker-icon\.png[\"\']?\)$/, '');
path = path.replace(/^url\([\"\']?/, '').replace(/marker-icon\.png[\"\']?\)$/, '');
}

return path;
Expand Down

0 comments on commit 3fae3be

Please sign in to comment.