refactor :yay:

This commit is contained in:
Dario48true 2025-02-19 10:11:55 +01:00
parent d69fea51b9
commit 19bdd1ec5b
8 changed files with 9 additions and 30 deletions

View file

@ -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 } })