diff --git a/static/script.js b/static/script.js index ec6c773..c5c5a60 100644 --- a/static/script.js +++ b/static/script.js @@ -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()