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:
parent
6a3b1b309e
commit
dfa0945632
4 changed files with 24 additions and 28 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue