From 81cb43004b29d385d0ee7685271a63e162f88f25 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 19 Nov 2023 02:16:30 +0200 Subject: [PATCH] Fix zoomed character avatar validation --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 846cce102..1057ea412 100644 --- a/public/script.js +++ b/public/script.js @@ -9060,7 +9060,7 @@ jQuery(async function () { const charsPath = '/characters/' const targetAvatarImg = thumbURL.substring(thumbURL.lastIndexOf("=") + 1); const charname = targetAvatarImg.replace('.png', ''); - const isValidCharacter = characters.some(x => x.avatar === targetAvatarImg); + const isValidCharacter = characters.some(x => x.avatar === decodeURIComponent(targetAvatarImg)); // Remove existing zoomed avatars for characters that are not the clicked character when moving UI is not enabled if (!power_user.movingUI) {