diff --git a/public/static/index.js b/public/static/index.js index 1261e15..ad52ab9 100644 --- a/public/static/index.js +++ b/public/static/index.js @@ -4,7 +4,7 @@ function search_web() { } search_box.addEventListener('keyup', (e) => { - if (e.keyCode === 13) { + if (e.key === 'Enter') { search_web() } })