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) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
item.classList.toggle(
|
||||||
if (action.action['Selected Text'].charAt(0) == ">") {
|
"action_mode_input",
|
||||||
item.classList.add("action_mode_input");
|
action.action['Selected Text'].replaceAll("\n", "")[0] === ">"
|
||||||
} else {
|
);
|
||||||
item.classList.remove("action_mode_input");
|
|
||||||
}
|
|
||||||
|
|
||||||
if ('wi_highlighted_text' in action.action) {
|
if ('wi_highlighted_text' in action.action) {
|
||||||
for (chunk of action.action['wi_highlighted_text']) {
|
for (chunk of action.action['wi_highlighted_text']) {
|
||||||
|
Reference in New Issue
Block a user