/* Get the "code" from the querystring if it's there */
const params = new URLSearchParams(document.location.search);
if (params.get("code")) {
- ct.textContent = params.get("code");
+ ct.textContent = params.get("code").toUpperCase();
}
else {
/* Otherwise, use a random code */