WIP
This commit is contained in:
parent
22af32adc2
commit
cab74a44b4
@ -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)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
})();
|
@ -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)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user