Spaces:
Runtime error
Runtime error
LX5321
commited on
Commit
•
6556e0f
1
Parent(s):
85d463f
UPDATED: Removed Deprecated API
Browse files- 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.
|
8 |
search_web()
|
9 |
}
|
10 |
})
|
|
|
4 |
}
|
5 |
|
6 |
search_box.addEventListener('keyup', (e) => {
|
7 |
+
if (e.key === 'Enter') {
|
8 |
search_web()
|
9 |
}
|
10 |
})
|