Fix variable name mistake couldn't join
This commit is contained in:
@@ -154,7 +154,7 @@
|
|||||||
const code = document.getElementById("code");
|
const code = document.getElementById("code");
|
||||||
const pat = new RegExp("^[a-z0-9]{4}$")
|
const pat = new RegExp("^[a-z0-9]{4}$")
|
||||||
document.getElementById("join").addEventListener("click", () => {
|
document.getElementById("join").addEventListener("click", () => {
|
||||||
if (!reg.test(code.value)) {
|
if (!pat.test(code.value)) {
|
||||||
alert("Invalid ID");
|
alert("Invalid ID");
|
||||||
} else {
|
} else {
|
||||||
window.location.href = window.location.origin + "/" + code.value;
|
window.location.href = window.location.origin + "/" + code.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user