From fef50b8a91458f1955ff5331be18093666b61054 Mon Sep 17 00:00:00 2001 From: viktorxda <35473052+viktorxda@users.noreply.github.com> Date: Sat, 22 Feb 2025 18:59:21 +0100 Subject: [PATCH] [no ci] Update wifibroadcast-ng --- general/package/wifibroadcast-ng/files/wifibroadcast | 1 + general/package/wifibroadcast-ng/www/script.js | 2 ++ 2 files changed, 3 insertions(+) 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 } }); }