diff options
Diffstat (limited to 'src/edit.js')
-rw-r--r-- | src/edit.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/edit.js b/src/edit.js index 6c2f328..062a0de 100644 --- a/src/edit.js +++ b/src/edit.js @@ -15,7 +15,7 @@ let editors = []; let unsavedChanges = false; const inputEvent = new InputEvent('input'); -window.onload = () => { +window.addEventListener('load', () => { form = document.getElementById('update'); let inputs = form.elements; for (const input of inputs) { @@ -86,7 +86,7 @@ window.onload = () => { window.onkeydown = keyboardHandler; window.onbeforeunload = confirmExit; -}; +}); /** * Manage a keyboardEvent |