Don't allow questionmarks in url

This commit is contained in:
2021-09-22 18:31:48 +02:00
parent c45061440e
commit 3797428ef1
+6 -1
View File
@@ -24,7 +24,12 @@ window.addEventListener("load", () => {
return return
} }
if ((e.keyCode < 65 || e.keyCode > 90) && (e.keyCode !== 191) ) return if (e.keyCode === 191) {
terminal.textContent += "/"
return
}
if (e.keyCode < 65 || e.keyCode > 90) return
terminal.textContent += e.key.toLowerCase() terminal.textContent += e.key.toLowerCase()
} }