mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-08 10:12:37 -08:00
Fixed problem with SVG images identified by file extension
This commit is contained in:
parent
505c332123
commit
9de3bb6f59
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue