Web-If: Add Console-Cmd input

This commit is contained in:
feelfree69
2026-04-12 13:02:42 +02:00
parent c1a414833d
commit c91177d992
2 changed files with 26 additions and 0 deletions
+14
View File
@@ -27,6 +27,20 @@ async function ipSub() {
}
}
async function cmdSub() {
var cmd = document.getElementById('console_cmd').value;
try {
const response = await fetch('/cmd', {
method: 'POST',
body: cmd
});
console.log('Completed!', response);
} catch(err) {
console.error(`Error: ${err}`);
}
}
async function sendConfig(c) {
const form = new FormData();
form.append("MAX_FILE_SIZE", "4096");