Fixed problem with SVG images identified by file extension

print-window-tiddler
Jeremy Ruston 2012-03-03 13:52:10 +00:00
rodzic 505c332123
commit 9de3bb6f59
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -21,7 +21,7 @@ var ImageParser = function(options) {
ImageParser.prototype.parse = function(type,text) {
var src;
if(type === "image/svg+xml" || type === ".svg") {
src = "data:" + type + "," + encodeURIComponent(text);
src = "data:image/svg+xml," + encodeURIComponent(text);
} else {
src = "data:" + type + ";base64," + text;
}