refactor :yay:
This commit is contained in:
parent
d69fea51b9
commit
19bdd1ec5b
8 changed files with 9 additions and 30 deletions
3
path.js
3
path.js
|
@ -1 +1,2 @@
|
|||
document.getElementsByClassName("path").addEventListener("keydown", function(e) { if (e.key === "Enter") { window.location.href = window.location.origin + e.target.value } })
|
||||
document.getElementById("path").addEventListener("keydown", function(e) { if (e.key === "Enter") { e.preventDefault(); } })
|
||||
document.getElementById("path").addEventListener("keydown", function(e) { if (e.key === "Enter") { window.location.href = window.location.origin + e.target.value } })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue