Do not display data:image/ src as text

This commit is contained in:
Yohan Boniface 2018-07-20 09:39:29 +02:00
parent 408bbd81aa
commit 1cbf140f57

View file

@ -62,7 +62,7 @@ L.U.Icon.Default = L.U.Icon.extend({
var src = this._getIconUrl('icon');
if (src) {
// An url.
if (src.indexOf('http') === 0 || src.indexOf('/') === 0) {
if (src.indexOf('http') === 0 || src.indexOf('/') === 0 || src.indexOf('data:image') === 0) {
this.elements.img = L.DomUtil.create('img', null, this.elements.container);
this.elements.img.src = src;
} else {