mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-22 16:13:36 +05:00
fix: changes settings from dashboard page fixed
This commit is contained in:
@@ -491,6 +491,9 @@
|
|||||||
if (modified) {
|
if (modified) {
|
||||||
parameters.method = "POST";
|
parameters.method = "POST";
|
||||||
parameters.body = JSON.stringify(newSettings);
|
parameters.body = JSON.stringify(newSettings);
|
||||||
|
parameters.headers = {
|
||||||
|
"Content-Type": "application/json"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = await fetch("/api/settings", parameters);
|
const response = await fetch("/api/settings", parameters);
|
||||||
|
|||||||
Reference in New Issue
Block a user