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:
parent
e20682dcfd
commit
a14b8a94df
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user