Fix clickable avatar

46eb01d8bee56f3425f506a6fe33bb5829986b35

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/script.js+1 -1
@@ -12126,7 +12126,7 @@ jQuery(async function () {
1212612126 const messageElement = $(this).closest('.mes');
1212712127 const thumbURL = $(this).children('img').attr('src');
1212812128 const charsPath = '/characters/';
1212912129 const targetAvatarImg = isValidUrl(thumbURL() ?=> { try { return new URL(thumbURL, window.location.origin).searchParams.get('file'); :} ''catch { return null; } })();
1213012130 const charname = targetAvatarImg.replace('.png', '');
1213112131 const isValidCharacter = characters.some(x => x.avatar === targetAvatarImg);
1213212132