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

pull/1/head
ansuz 7 years ago
parent 26f5a1fe74
commit b6430d640e

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

Loading…
Cancel
Save