From 1de3f42385890bff2138a7f9aad1830ef9b8e8ab Mon Sep 17 00:00:00 2001 From: baku Date: Fri, 28 Apr 2017 16:56:55 +0200 Subject: [PATCH] Recovering after a crash - issue #463 --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index d1f005d..ba8dacb 100644 --- a/index.js +++ b/index.js @@ -124,7 +124,8 @@ const ContainerService = { // uninstallation. This object contains also a version number, in case we // need to implement a migration in the future. // 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 ContextualIdentityProxy.getIdentities().forEach(identity => { preInstalledIdentities.push(identity.userContextId);