mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 21:35:33 +03:00
Prettified JSON backup files
This commit is contained in:
parent
fac1de1ee7
commit
cf4ac8be5b
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ function configuration_backup(callback) {
|
||||||
chosenFileEntry = fileEntryWritable;
|
chosenFileEntry = fileEntryWritable;
|
||||||
|
|
||||||
// crunch the config object
|
// crunch the config object
|
||||||
var serialized_config_object = JSON.stringify(configuration);
|
var serialized_config_object = JSON.stringify(configuration, null, '\t');
|
||||||
var blob = new Blob([serialized_config_object], {type: 'text/plain'}); // first parameter for Blob needs to be an array
|
var blob = new Blob([serialized_config_object], {type: 'text/plain'}); // first parameter for Blob needs to be an array
|
||||||
|
|
||||||
chosenFileEntry.createWriter(function (writer) {
|
chosenFileEntry.createWriter(function (writer) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue