From 5ebd096c8872dcebe4e2e13c7c1b7d37fe49da6d Mon Sep 17 00:00:00 2001 From: Cohee1207 <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 19 Aug 2023 16:14:25 +0300 Subject: [PATCH] Fix auto load char --- public/scripts/RossAscends-mods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index 87abe5569..adc17cec9 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -346,7 +346,7 @@ export function RA_CountCharTokens() { * The character or group is selected (clicked) if it is found. */ async function RA_autoloadchat() { - if (document.getElementById('CharID0') !== null) { + if (document.querySelector('#rm_print_characters_block .character_select') !== null) { // active character is the name, we should look it up in the character list and get the id let active_character_id = Object.keys(characters).find(key => characters[key].avatar === active_character);