mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-01 13:57:05 +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