mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Fixup the POST statement.
This commit is contained in:
parent
dce807dfbf
commit
ae87f030fc
@ -3,4 +3,19 @@ export function loadConfig(onComplete) {
|
||||
window.config = data;
|
||||
onComplete();
|
||||
});
|
||||
}
|
||||
|
||||
export function saveConfig(onComplete) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/local-api/updateConfig",
|
||||
data: JSON.stringify(window.config),
|
||||
contentType: 'application/json',
|
||||
success: () => {
|
||||
onComplete();
|
||||
},
|
||||
error: () => {
|
||||
alert("That didn't work");
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user