diff options
Diffstat (limited to 'src/main/resources/templates/index.html')
| -rw-r--r-- | src/main/resources/templates/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index ec8b3c7..c2ade61 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -51,7 +51,7 @@ </main> <script th:src="@{/scripts.js}"></script> <script> - window.onload = () => { + window.addEventListener('load', () => { let keyBindings = { 'w': 'first-page-link', 'a': 'prev-page-link', @@ -66,7 +66,7 @@ } } }; - }; + }); </script> </body> </html>
\ No newline at end of file |
