mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-03 03:17:54 +01:00
Reformat code
This commit is contained in:
parent
ea809023b5
commit
58f7c77281
@ -887,7 +887,7 @@ async function getStatus() {
|
|||||||
|
|
||||||
// We didn't get a 200 status code, but the endpoint has an explanation. Which means it DID connect, but I digress.
|
// We didn't get a 200 status code, but the endpoint has an explanation. Which means it DID connect, but I digress.
|
||||||
if (online_status == "no_connection" && data.response) {
|
if (online_status == "no_connection" && data.response) {
|
||||||
toastr.error(data.response, "API Error", {timeOut: 5000, preventDuplicates:true})
|
toastr.error(data.response, "API Error", { timeOut: 5000, preventDuplicates: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
//console.log(online_status);
|
//console.log(online_status);
|
||||||
@ -7725,7 +7725,7 @@ $(document).ready(function () {
|
|||||||
const enabled = $("#use-mancer-api-checkbox").prop("checked");
|
const enabled = $("#use-mancer-api-checkbox").prop("checked");
|
||||||
$("#mancer-api-ui").toggle(enabled);
|
$("#mancer-api-ui").toggle(enabled);
|
||||||
api_use_mancer_webui = enabled;
|
api_use_mancer_webui = enabled;
|
||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
getStatus();
|
getStatus();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user