mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-02 14:46:25 +00:00
Don't allow questionmarks in url
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user