Prevent overloading of window.onload

This commit is contained in:
Chris Wilson
2020-07-23 20:54:25 -04:00
parent 24c4972c44
commit 051555ef14
3 changed files with 7 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
window.onload = () => {
window.addEventListener('load', () => {
document.getElementById('upload-button').addEventListener('click', () => {
document.getElementById('file-input').click();
});
@@ -14,4 +14,4 @@ window.onload = () => {
"info": false,
"dom": "t",
});
};
});