Skip to content

Commit

Permalink
Uncaught Mediatype Error image has type "img" or "svg" missing option…
Browse files Browse the repository at this point in the history
… for "svg"
  • Loading branch information
Engelbert Niehaus committed Dec 3, 2020
1 parent 4b99de2 commit a21fbba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/js/wikiconvert.js
Original file line number Diff line number Diff line change
Expand Up @@ -1743,7 +1743,7 @@ this.process_normal = function(wikitext) {
//replace_str = '<video src="'+vURL+'"></video>'
pWikiCode = pWikiCode.replace(tokens[0], replace_str);
//} else if ((vFileType == "svg") || (vFileType == "img")) {
} else if (vFileType == "img") {
} else if ((vFileType == "img") || (vFileType == "svg")) {
//----------------------------------------------
//----------- MEDIATYPE: IMAGE-----------------
//----------------------------------------------
Expand Down Expand Up @@ -1796,7 +1796,7 @@ this.process_normal = function(wikitext) {
}
}; // else if vLineSplit.length
} else {
console.error("Uncaught MediaType: '" + vURL + "'");
console.error("Uncaught MediaType (" + vFileType + "): '" + vURL + "'");
} // else vFileType
}; // While tokens
return pWikiCode;
Expand Down

0 comments on commit a21fbba

Please sign in to comment.