mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 01:17:39 +01:00
Add check for module before offloading TH sprite
This commit is contained in:
parent
6a028cc828
commit
7b51d94e1b
@ -394,6 +394,11 @@ function onExpressionsShowDefaultInput() {
|
||||
}
|
||||
|
||||
async function unloadLiveChar() {
|
||||
if (!modules.includes('talkinghead')) {
|
||||
console.debug('talkinghead module is disabled');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const url = new URL(getApiUrl());
|
||||
url.pathname = '/api/talkinghead/unload';
|
||||
|
Loading…
Reference in New Issue
Block a user