mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
JS fix
This commit is contained in:
@@ -783,7 +783,9 @@ function var_changed(data) {
|
|||||||
|
|
||||||
if ((data.classname == 'actions') && (data.name == 'Action Count')) {
|
if ((data.classname == 'actions') && (data.name == 'Action Count')) {
|
||||||
current_action = data.value;
|
current_action = data.value;
|
||||||
document.getElementsByClassName("action_image")[0].setAttribute("chunk", data.value);
|
if (document.getElementsByClassName("action_image")[0]) {
|
||||||
|
document.getElementsByClassName("action_image")[0].setAttribute("chunk", data.value);
|
||||||
|
}
|
||||||
if (current_action <= 0) {
|
if (current_action <= 0) {
|
||||||
//console.log("setting action_count to "+current_action);
|
//console.log("setting action_count to "+current_action);
|
||||||
const storyPrompt = $el("#story_prompt");
|
const storyPrompt = $el("#story_prompt");
|
||||||
|
Reference in New Issue
Block a user