bugfixes
This commit is contained in:
@@ -11,6 +11,17 @@
|
||||
}
|
||||
|
||||
async function refresh(){
|
||||
let data;
|
||||
try{
|
||||
const r = await fetch('/api/streams', { cache: 'no-store' });
|
||||
if (!r.ok) throw new Error('api '+r.status);
|
||||
data = await r.json();
|
||||
}catch(e){
|
||||
console.warn('streams api error:', e);
|
||||
setLive(false);
|
||||
viewersEl.textContent = 'Zuschauer: –';
|
||||
return;
|
||||
}
|
||||
const r = await fetch('/api/streams');
|
||||
const d = await r.json();
|
||||
const it = d.items.find(x=>x.name===name);
|
||||
|
||||
Reference in New Issue
Block a user