temporary measure to address infinite reload loop due to inaccurate inNewFile condition

This commit is contained in:
ansuz 2017-12-22 14:59:41 +01:00
parent 26f5a1fe74
commit b6430d640e

View file

@ -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;
}