mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-06 18:56:56 +00:00
Fix JSON format for bc61f7eebf9cf810d9b226c65a7f49744bd0a803
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…
x
Reference in New Issue
Block a user