Skip to content
Snippets Groups Projects
Commit 3003f8e6 authored by Jan Hartig's avatar Jan Hartig
Browse files

Fix

parent cf4f11b8
No related branches found
No related tags found
1 merge request!1Add error handling
......@@ -99,9 +99,16 @@
const roomUrl = document.getElementById('roomUrl');
let room = window.location.href.substring(window.location.href.lastIndexOf('/') + 1)
if (room.length >= 2 && room !== "raumfreischaltung") {
roomField.value = room
get_room(room)
if (room !== "raumfreischaltung" && room !== "") {
roomField.value = room;
if (room.length >= 2) {
get_room(room);
} else {
errorText.innerText = "Raumname zu kurz.";
hiddenFieldError.classList.add("visible");
hiddenFieldError.ariaHidden = "false";
}
}
function get_room(_room) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment