tweak determining the name of dropped links to SVGs

pull/29/head
jmoenig 2016-12-06 15:25:13 +01:00
rodzic 9f9f841d2a
commit b883d24850
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -10915,7 +10915,10 @@ HandMorph.prototype.processDrop = function (event) {
pic.onload = function () {
target.droppedSVG(
pic,
url.slice(0, url.lastIndexOf('.'))
url.slice(
url.lastIndexOf('/') + 1,
url.lastIndexOf('.')
)
);
};
pic.src = 'data:image/svg+xml;utf8,' + txt;