From e2d9d855fbfc98e470c26c92b0d58eb7bf8a90e0 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 11 Oct 2017 14:41:32 -0700 Subject: [PATCH] Fully eliminate debug from imported data (#1556) FREEBIE --- js/backup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/backup.js b/js/backup.js index da5f533d2..b2589ee3a 100644 --- a/js/backup.js +++ b/js/backup.js @@ -173,7 +173,8 @@ function importFromJsonString(idb_db, jsonString) { return new Promise(function(resolve, reject) { var importObject = JSON.parse(jsonString); - var storeNames = _.without(_.keys(importObject), ['debug']); + delete importObject.debug; + var storeNames = _.keys(importObject); console.log('Importing to these stores:', storeNames.join(', '));