mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-09-26 12:21:16 +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()});
|
||||
if (r.ok) {
|
||||
alert('OK');
|
||||
dump = editor.getValue();
|
||||
await fetch('api/restart', {method: 'POST'});
|
||||
} else {
|
||||
alert(await r.text());
|
||||
|
Reference in New Issue
Block a user