Fully eliminate debug from imported data (#1556)

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-10-11 14:41:32 -07:00 committed by GitHub
parent 26bff0db52
commit e2d9d855fb

View file

@ -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(', '));