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() {
|
async function unloadLiveChar() {
|
||||||
|
if (!modules.includes('talkinghead')) {
|
||||||
|
console.debug('talkinghead module is disabled');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const url = new URL(getApiUrl());
|
const url = new URL(getApiUrl());
|
||||||
url.pathname = '/api/talkinghead/unload';
|
url.pathname = '/api/talkinghead/unload';
|
||||||
|
|
Loading…
Reference in New Issue