This commit is contained in:
choelzl 2022-02-06 21:03:37 +01:00
parent 22af32adc2
commit cab74a44b4
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
2 changed files with 13 additions and 13 deletions

View File

@ -47,17 +47,4 @@
$.registerChatSubcommand('overlay', 'timer', 2);
});
$(document).ready(async ()=>{
if(socket){
while(socket.getReadyState() === 0){
await new Promise(r => setTimeout(r, 500));
}
socket.getDBValue("get_current_stream_info", 'streamInfo', 'lastSub', function(response) {
console.log(response);
if(response.request_data) console.log(response.request_data)
})
}
})
})();

View File

@ -45,4 +45,17 @@ $(function () {
socket.addFamilyHandler("overlay", handleSocketMessage);
$(document).ready(async ()=>{
if(socket){
while(socket.getReadyState() === 0){
await new Promise(r => setTimeout(r, 500));
}
socket.getDBValue("get_current_stream_info", 'streamInfo', 'lastSub', function(response) {
console.log(response);
if(response.request_data) console.log(response.request_data)
})
}
})
});