Fix WebUI editor after Save

This commit is contained in:
Alex X
2025-02-27 15:01:05 +03:00
parent 934d43b525
commit ae89600201

View File

@@ -46,6 +46,7 @@
r = await fetch('api/config', {method: 'POST', body: editor.getValue()}); r = await fetch('api/config', {method: 'POST', body: editor.getValue()});
if (r.ok) { if (r.ok) {
alert('OK'); alert('OK');
dump = editor.getValue();
await fetch('api/restart', {method: 'POST'}); await fetch('api/restart', {method: 'POST'});
} else { } else {
alert(await r.text()); alert(await r.text());