mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-09-26 20:31:11 +08:00
Fix WebUI editor after Save
This commit is contained in:
@@ -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());
|
||||||
|
Reference in New Issue
Block a user