Actually assign the replaced path for the default icon (#5580)

This commit is contained in:
Iván Sánchez Ortega 2017-06-26 12:03:51 +02:00 committed by Per Liedman
parent 35e7c4b7f7
commit 3fae3befd3

View File

@ -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;