1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2025-06-08 00:42:24 +00:00

move room detection to room uuid

This commit is contained in:
Franzi 2024-10-31 21:46:55 +01:00
parent 6a3b1b309e
commit dfa0945632
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 24 additions and 28 deletions

View file

@ -61,14 +61,16 @@ function get_next_talk() {
}
function get_room_name() {
room_name = null;
try {
hash = decodeURIComponent(window.location.hash.substring(1));
room_name = hash;
} catch (e) {
console.error(e);
}
return room_name;
if (event_info && event_info["rooms"].hasOwnProperty(hash)) {
return event_info["rooms"][hash];
}
// XXX remove fallback when releasing 3.0.0
return hash;
}
function format_time_from_pretalx(from_pretalx) {