Fix error hvor speaker will be added every time a modal is opened.

This commit is contained in:
Víðir Valberg Guðmundsson 2017-07-09 16:12:10 +02:00
parent a32f04548c
commit b27bac8500

View file

@ -49,6 +49,7 @@ function setup_websocket() {
}
speakers_div = modal.getElementsByClassName('speakers')[0];
speakers_div.innerHTML = "";
speakers = payload['event_instance']['speakers'];
for(speaker_id in speakers) {
var speaker = speakers[speaker_id];