1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Fix JSON format for bc61f7eebf

Otherwise the JSON files cannot be imported back into TiddlyWiki
This commit is contained in:
Jermolene 2017-02-04 18:08:43 +00:00
parent e20682dcfd
commit a14b8a94df

View File

@ -87,7 +87,7 @@ function saveTiddlerFile(tiddler) {
for(var field in tiddler.fields) {
fields[field] = tiddler.getFieldString(field);
}
var text = JSON.stringify(fields,null,$tw.config.preferences.jsonSpaces),
var text = JSON.stringify([fields],null,$tw.config.preferences.jsonSpaces),
link = document.createElement("a");
link.setAttribute("target","_blank");
link.setAttribute("rel","noopener noreferrer");