From 5b7dbfc5fb59e5967b9a745b6cb9aeccaff2dc10 Mon Sep 17 00:00:00 2001 From: buggyj Date: Mon, 1 Sep 2014 11:48:40 +0200 Subject: [PATCH] remove code causing conversion of text/x-tiddlywiki type tiddlers to text/vnd.tiddlywiki --- plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js b/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js index e87db5b0b..64caa4dd2 100644 --- a/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js +++ b/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js @@ -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); };