Redo previous migration
This time, wait for storage to be ready. Fixes #608 // FREEBIE
This commit is contained in:
parent
60c37ca3c6
commit
34ae81c30d
1 changed files with 12 additions and 0 deletions
|
@ -88,6 +88,18 @@
|
||||||
storage.put("chromiumRegistrationDoneEver", "");
|
storage.put("chromiumRegistrationDoneEver", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
version: "6.0",
|
||||||
|
migrate: function(transaction, next) {
|
||||||
|
storage.onready(function() {
|
||||||
|
if (storage.get("chromiumRegistrationDone") === "") {
|
||||||
|
storage.put("chromiumRegistrationDoneEver", "");
|
||||||
|
next();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
storage.fetch();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}());
|
}());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue