This commit is contained in:
choelzl 2022-02-06 21:55:03 +01:00
parent 8015271ad2
commit d0dd07a9ac
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -62,14 +62,17 @@ $(function () {
await new Promise(r => setTimeout(r, 500));
}
socket.getDBValue("get_current_stream_info_lastFollow", 'streamInfo', 'lastFollow', (response)=>{
consloe.log(response)
if(response.streamInfo) lastFollow = response.streamInfo || lastFollow;
refreshUI();
})
socket.getDBValue("get_current_stream_info_lastSub", 'streamInfo', 'lastSub', (response)=>{
consloe.log(response)
if(response.streamInfo) lastSub = response.streamInfo || lastSub;
refreshUI();
})
socket.getDBValue("get_current_stream_info_lastDonator", 'streamInfo', 'lastDonator', (response)=>{
consloe.log(response)
if(response.streamInfo) lastDonator = response.streamInfo || lastDonator;
refreshUI();
})