mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix occasional action highlight issue
This commit is contained in:
@@ -598,12 +598,10 @@ function do_story_text_updates(action) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (action.action['Selected Text'].charAt(0) == ">") {
|
||||
item.classList.add("action_mode_input");
|
||||
} else {
|
||||
item.classList.remove("action_mode_input");
|
||||
}
|
||||
item.classList.toggle(
|
||||
"action_mode_input",
|
||||
action.action['Selected Text'].replaceAll("\n", "")[0] === ">"
|
||||
);
|
||||
|
||||
if ('wi_highlighted_text' in action.action) {
|
||||
for (chunk of action.action['wi_highlighted_text']) {
|
||||
|
Reference in New Issue
Block a user