diff --git a/general/package/wifibroadcast-ng/files/wifibroadcast b/general/package/wifibroadcast-ng/files/wifibroadcast index 83daef1a..fd817bfc 100755 --- a/general/package/wifibroadcast-ng/files/wifibroadcast +++ b/general/package/wifibroadcast-ng/files/wifibroadcast @@ -116,6 +116,7 @@ start() { sleep 1 video_settings touch /etc/system.ok + killall -1 majestic fi stop diff --git a/general/package/wifibroadcast-ng/www/script.js b/general/package/wifibroadcast-ng/www/script.js index 7801a532..b97f96c6 100644 --- a/general/package/wifibroadcast-ng/www/script.js +++ b/general/package/wifibroadcast-ng/www/script.js @@ -9,6 +9,7 @@ async function loadYAML(url, setter) { async function uploadYAML(data, location) { const yamlData = jsyaml.dump(data); await fetch('/upload', { + method: 'POST', headers: { 'File-Location': location }, body: yamlData }); @@ -16,6 +17,7 @@ async function uploadYAML(data, location) { async function runCommand(command) { await fetch('/command', { + method: 'POST', headers: { 'Run-Command': command } }); }