Skip to content

Commit 869676f

Browse files
committed
Update codedrop.js
1 parent f6cf606 commit 869676f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

codedrop.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,18 @@ if ('launchQueue' in window) {
308308

309309
// handle the file
310310
const fileData = await launchFile.getFile();
311-
312-
processFile(fileData);
311+
312+
if (typeof selectedFile === 'undefined') {
313+
314+
window.addEventListener('load', () => {
315+
316+
processFile(fileData);
317+
318+
});
319+
320+
}
313321

314322
});
315323

316324
}
325+

0 commit comments

Comments
 (0)