Fix auto load char

This commit is contained in:
Cohee1207 2023-08-19 16:14:25 +03:00
parent 2d61c9954b
commit 5ebd096c88
1 changed files with 1 additions and 1 deletions

View File

@ -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);