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

Check room length when getting name from url

parent 7e3369e4
Branches
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
const roomUrl = document.getElementById('roomUrl'); const roomUrl = document.getElementById('roomUrl');
let room = window.location.href.substring(window.location.href.lastIndexOf('/') + 1) let room = window.location.href.substring(window.location.href.lastIndexOf('/') + 1)
if (room !== "raumfreischaltung") { if (room.length > 2 && room !== "raumfreischaltung") {
roomField.value = room; roomField.value = room;
get_room(); get_room();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment