From b6430d640e5b813a7d41927ebb434a2c3b25ff87 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 22 Dec 2017 14:59:41 +0100 Subject: [PATCH] temporary measure to address infinite reload loop due to inaccurate inNewFile condition --- www/common/sframe-common-outer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index 192a8a62d..0df169f6b 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -141,7 +141,7 @@ define([ // Check if the pad exists on server if (!window.location.hash) { isNewFile = true; return; } Cryptpad.getFileSize(window.location.href, waitFor(function (err, size) { - if (size) { + if (typeof(size) === 'number' && size >= 108) { isNewFile = false; return; }