mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-10 00:50:43 +01:00
Update index.js
This commit is contained in:
parent
9333340175
commit
8f1321f09d
@ -399,8 +399,8 @@ async function unloadLiveChar() {
|
|||||||
try {
|
try {
|
||||||
const url = new URL(getApiUrl());
|
const url = new URL(getApiUrl());
|
||||||
url.pathname = '/api/live2d/unload';
|
url.pathname = '/api/live2d/unload';
|
||||||
|
|
||||||
const loadResponse = await fetch(url);
|
const loadResponse = await doExtrasFetch(url);
|
||||||
|
|
||||||
if (!loadResponse.ok) {
|
if (!loadResponse.ok) {
|
||||||
throw new Error(loadResponse.statusText);
|
throw new Error(loadResponse.statusText);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user