Merge pull request #470 from bakulf/crash

Recovering after a crash - issue #463
This commit is contained in:
luke crouch 2017-05-04 09:24:13 -05:00 committed by GitHub
commit 5887f991b3

View file

@ -124,7 +124,8 @@ const ContainerService = {
// uninstallation. This object contains also a version number, in case we // uninstallation. This object contains also a version number, in case we
// need to implement a migration in the future. // need to implement a migration in the future.
// In 1.1.1 and less we deleted savedConfiguration on upgrade so we need to rebuild // In 1.1.1 and less we deleted savedConfiguration on upgrade so we need to rebuild
if (installation && (reason !== "upgrade" || !ss.storage.savedConfiguration)) { if (!ss.storage.savedConfiguration ||
(installation && reason !== "upgrade")) {
let preInstalledIdentities = []; // eslint-disable-line prefer-const let preInstalledIdentities = []; // eslint-disable-line prefer-const
ContextualIdentityProxy.getIdentities().forEach(identity => { ContextualIdentityProxy.getIdentities().forEach(identity => {
preInstalledIdentities.push(identity.userContextId); preInstalledIdentities.push(identity.userContextId);