an attempt at making an efficient file manager

This commit is contained in:
2020-01-28 22:36:29 +01:00
parent f3ad08afca
commit 19811781d3
4 changed files with 265 additions and 50 deletions

View File

@@ -20,7 +20,7 @@ TextViewer.prototype.getText = function() {
this.pre.innerText = "Loading...";
this.container.appendChild(this.pre);
if (this.file.size > 1<<22) { // File larger than 4 MiB
if (this.file.size > 1<<20) { // File larger than 1 MiB
this.pre.innerText = "File is too large to view online.\nPlease download and view it locally.";
return;
}