Implements function to pass tags updates to python

- also removes main function from javascript file
This commit is contained in:
Ariana Giroux 2022-08-04 17:40:31 -06:00
parent 08287a9758
commit ea96df1774
1 changed files with 10 additions and 2 deletions

View File

@ -31,8 +31,16 @@ async function updateStreamTitle(value) {
await uiUpdateOnce();
}
async function Main() {
await uiUpdate()
async function updateTags(value) {
// this function simply passes data along to the python script, and allows
// python to handle data processing
response = await fetch('http://127.0.0.1:5000/api/update/servertags',
{
method:'POST',
body:JSON.stringify(value)
}
);
await uiUpdateOnce();
}
continuousUiUpdate()