1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 12:55:14 +03:00

Prettified JSON backup files

This commit is contained in:
Sebastian Hammerl 2016-10-05 21:20:43 +02:00
parent fac1de1ee7
commit cf4ac8be5b

View file

@ -198,7 +198,7 @@ function configuration_backup(callback) {
chosenFileEntry = fileEntryWritable;
// 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
chosenFileEntry.createWriter(function (writer) {