allow dice even without Extras connection

This commit is contained in:
RossAscends
2023-05-18 04:23:19 +09:00
parent dfb0e5994a
commit 661b4fec9a
2 changed files with 9 additions and 3 deletions

View File

@ -303,6 +303,8 @@ async function loadExtrasModels() {
return [];
}
addSDGenButtons();
const url = new URL(getApiUrl());
url.pathname = '/api/image/model';
const getCurrentModelResult = await fetch(url, defaultRequestArgs);
@ -605,7 +607,7 @@ async function moduleWorker() {
}
}
addSDGenButtons();
setInterval(moduleWorker, UPDATE_INTERVAL);