From 9fbf507cda126f6d4a49112640b4f4c8b5a4fc5e Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 12 Jun 2018 14:23:54 +0200 Subject: [PATCH] Fix new version detection --- www/common/cryptpad-common.js | 4 +++- www/common/sframe-common.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 9c29fbe4d..001358651 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -708,9 +708,11 @@ define([ var update = updateLocalVersion(NewConfig.requireConf && NewConfig.requireConf.urlArgs); if (update) { postMessage('DISCONNECT'); + return; } + common.onNetworkReconnect.fire(data); }); - common.onNetworkReconnect.fire(data); break; + break; } // Messenger case 'CONTACTS_MESSAGE': { diff --git a/www/common/sframe-common.js b/www/common/sframe-common.js index 6039ead70..5ab973476 100644 --- a/www/common/sframe-common.js +++ b/www/common/sframe-common.js @@ -443,6 +443,7 @@ define([ $err.find('a').click(function () { funcs.gotoURL(); }); + UI.findOKButton().click(); UI.errorLoadingScreen($err, true, true); });