mirror of
https://github.com/MichaByte/OnBoard-Live.git
synced 2026-01-29 13:32:12 -05:00
wip
This commit is contained in:
parent
8308b22d89
commit
960e437706
2 changed files with 10 additions and 7 deletions
|
|
@ -9,6 +9,7 @@
|
|||
}[]
|
||||
| null = null;
|
||||
$: activeStream = "";
|
||||
$: activeStreamerName = "";
|
||||
$: oldActiveStream = "";
|
||||
let newData: {
|
||||
ready: boolean;
|
||||
|
|
@ -22,7 +23,8 @@
|
|||
const activeStreamResponse = await fetch(
|
||||
"http://localhost:8000/api/v1/active_stream",
|
||||
);
|
||||
activeStream = (await activeStreamResponse.text()).replaceAll('"', "");
|
||||
activeStream = (await activeStreamResponse.text()).replaceAll('"', "").split(",")[0];
|
||||
activeStreamerName = (await activeStreamResponse.text()).replaceAll('"', "").split(",")[1];
|
||||
// if (oldActiveStream !== null && oldActiveStream !== activeStream) {
|
||||
// window.location.reload();
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue