This commit is contained in:
choelzl 2022-02-06 21:54:13 +01:00
parent 6faf3293ad
commit 8015271ad2
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
2 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@
<div class="col-1"></div> <div class="col-1"></div>
<div class="col-3 m-2 card"><div class="position-absolute">Last Follow:</div><div id="follow" class="text-center fs-1 fw-bolder">-</div></div> <div class="col-3 m-2 card"><div class="position-absolute">Last Follow:</div><div id="follow" class="text-center fs-1 fw-bolder">-</div></div>
<div class="col-3 m-2 card"><div class="position-absolute">Last Sub:</div><div id="subscribe" class="text-center fs-1 fw-bolder">-</div></div> <div class="col-3 m-2 card"><div class="position-absolute">Last Sub:</div><div id="subscribe" class="text-center fs-1 fw-bolder">-</div></div>
<div class="col-3 m-2 card"><div class="position-absolute">Last Dono:</div><div id="dono" class="text-center fs-1 fw-bolder">-</div></div> <div class="col-3 m-2 card"><div class="position-absolute">Last Donation:</div><div id="donate" class="text-center fs-1 fw-bolder">-</div></div>
</div> </div>
<div id="single"></div> <div id="single"></div>
</div> </div>

View File

@ -61,15 +61,15 @@ $(function () {
while(socket.getReadyState() === 0){ while(socket.getReadyState() === 0){
await new Promise(r => setTimeout(r, 500)); await new Promise(r => setTimeout(r, 500));
} }
socket.getDBValue("get_current_stream_info", 'streamInfo', 'lastFollow', (response)=>{ socket.getDBValue("get_current_stream_info_lastFollow", 'streamInfo', 'lastFollow', (response)=>{
if(response.streamInfo) lastFollow = response.streamInfo || lastFollow; if(response.streamInfo) lastFollow = response.streamInfo || lastFollow;
refreshUI(); refreshUI();
}) })
socket.getDBValue("get_current_stream_info", 'streamInfo', 'lastSub', (response)=>{ socket.getDBValue("get_current_stream_info_lastSub", 'streamInfo', 'lastSub', (response)=>{
if(response.streamInfo) lastSub = response.streamInfo || lastSub; if(response.streamInfo) lastSub = response.streamInfo || lastSub;
refreshUI(); refreshUI();
}) })
socket.getDBValue("get_current_stream_info", 'streamInfo', 'lastDonator', (response)=>{ socket.getDBValue("get_current_stream_info_lastDonator", 'streamInfo', 'lastDonator', (response)=>{
if(response.streamInfo) lastDonator = response.streamInfo || lastDonator; if(response.streamInfo) lastDonator = response.streamInfo || lastDonator;
refreshUI(); refreshUI();
}) })