diff --git a/js/backup_restore.js b/js/backup_restore.js index dfd9922bc3..ecaf64901e 100644 --- a/js/backup_restore.js +++ b/js/backup_restore.js @@ -75,7 +75,7 @@ function configuration_backup() { if (!truncated) { // onwriteend will be fired again when truncation is finished truncated = true; - writer.truncate(serialized_config_object.length); + writer.truncate(blob.size); return; }