Redo previous migration

This time, wait for storage to be ready.

Fixes #608

// FREEBIE
This commit is contained in:
lilia 2016-01-15 01:22:07 -08:00
parent 60c37ca3c6
commit 34ae81c30d
1 changed files with 12 additions and 0 deletions

View File

@ -88,6 +88,18 @@
storage.put("chromiumRegistrationDoneEver", "");
}
}
},
{
version: "6.0",
migrate: function(transaction, next) {
storage.onready(function() {
if (storage.get("chromiumRegistrationDone") === "") {
storage.put("chromiumRegistrationDoneEver", "");
next();
}
});
storage.fetch();
}
}
];
}());