Fix occasional action highlight issue

This commit is contained in:
somebody
2023-07-21 18:08:21 -05:00
parent a17d7aae60
commit 560fb3bd2d

View File

@@ -597,13 +597,11 @@ function do_story_text_updates(action) {
story_area.append(item); story_area.append(item);
} }
} }
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']) {