kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fixed problem with SVG images identified by file extension
rodzic
505c332123
commit
9de3bb6f59
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue