kopia lustrzana https://github.com/miklobit/TiddlyWiki5
remove code causing conversion of text/x-tiddlywiki type tiddlers to text/vnd.tiddlywiki
rodzic
1b964873c4
commit
5b7dbfc5fb
|
@ -245,10 +245,7 @@ TiddlyWebAdaptor.prototype.convertTiddlerToTiddlyWebFormat = function(tiddler) {
|
|||
}
|
||||
});
|
||||
}
|
||||
// Default the content type and convert the type "text/x-tiddlywiki" into null
|
||||
if(result.type === "text/x-tiddlywiki") {
|
||||
result.type = null;
|
||||
};
|
||||
// Default the content type
|
||||
result.type = result.type || "text/vnd.tiddlywiki";
|
||||
return JSON.stringify(result,null,$tw.config.preferences.jsonSpaces);
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue