LX5321 commited on
Commit
6556e0f
1 Parent(s): 85d463f

UPDATED: Removed Deprecated API

Browse files
Files changed (1) hide show
  1. public/static/index.js +1 -1
public/static/index.js CHANGED
@@ -4,7 +4,7 @@ function search_web() {
4
  }
5
 
6
  search_box.addEventListener('keyup', (e) => {
7
- if (e.keyCode === 13) {
8
  search_web()
9
  }
10
  })
 
4
  }
5
 
6
  search_box.addEventListener('keyup', (e) => {
7
+ if (e.key === 'Enter') {
8
  search_web()
9
  }
10
  })