forked from rDrama/rDrama
1
0
Fork 0

resync after buffering

master
Aevann 2023-10-16 22:42:34 +03:00
parent 6647d3116d
commit d71b211dee
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,7 @@ function add_playing_listener() {
const chat_window_height = innerHeight - orgy_file.offsetHeight - 186
document.getElementById('chat-window').setAttribute('style', `max-height: ${chat_window_height}px !important`)
}
setTimeout(add_waiting_listener, 5000);
}, {once : true});
}
@ -47,3 +48,7 @@ orgy_file.addEventListener("timeupdate", function(){
orgy_file.addEventListener("ended", function(){
location.reload()
});
function add_waiting_listener() {
orgy_file.addEventListener('waiting', add_playing_listener, {once : true});
}