mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Prevent overloading of window.onload
This commit is contained in:
@@ -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",
|
||||
});
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user