mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-01 02:18:02 +00:00
Fixed problem with SVG images identified by file extension
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user