owo does it fix?
This commit is contained in:
parent
3346d1725f
commit
6af7abe041
2 changed files with 2 additions and 10 deletions
|
@ -1,9 +1 @@
|
|||
document
|
||||
.getElementById("path")
|
||||
.addEventListener("keydown", function(event) {
|
||||
if (event.code === "Enter") {
|
||||
window.location.href =
|
||||
window.location.origin + event.target.value;
|
||||
}
|
||||
});
|
||||
|
||||
document.getElementById("path").addEventListener("keydown", function(e) { if (e.code === "Enter") { e.preventDefault(); window.location.href = window.location.origin + e.target.value } })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue