mirror of
https://github.com/Buriburizaem0n/live2d.git
synced 2025-12-15 07:31:06 +00:00
fixed error
This commit is contained in:
@@ -243,7 +243,7 @@ function loadWidget() {
|
||||
async function loadNextModel() {
|
||||
let modelId = localStorage.getItem("modelId");
|
||||
if (!modelList) await loadModelList();
|
||||
let index = (++modelId >= modelList.models.length) ? 0 : modelId;
|
||||
let index = (++modelId >= modelList.models_json_path.length) ? 0 : modelId;
|
||||
loadModel(index, 0, modelList.messages[index]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user