From 0339f87d86aad41d73a6c20871d5d76cf6f9e6e5 Mon Sep 17 00:00:00 2001 From: cTn Date: Sat, 22 Feb 2014 21:43:17 +0100 Subject: [PATCH] more robust approach --- js/backup_restore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }