Skip to content

Commit 6f42780

Browse files
committed
Update filebrowser.js
1 parent 9a014b7 commit 6f42780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filebrowser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ async function loadFileInHTML(fileEl, fileSha) {
12721272

12731273

12741274
// if file is over 1MB
1275-
if (resp.errors && resp.errors.length > 0 && resp.errors[0].code === 'too_large') {
1275+
if (resp.size >= 1000000 && resp.content === '') {
12761276

12771277
// show file size prompt
12781278

0 commit comments

Comments
 (0)