Don't allow questionmarks in url

alternate-navbar
Maik de Kruif 3 years ago
parent c45061440e
commit 3797428ef1
Signed by: maik
GPG Key ID: 44A55AD1F0673FA6
  1. 7
      themes/maik-blog/assets/js/nav.js

@ -24,7 +24,12 @@ window.addEventListener("load", () => {
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()
}

Loading…
Cancel
Save