From e7e298d2e7fbdcd9c692dd4a2762951f2f541cdb Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 26 Oct 2024 13:48:15 +0200 Subject: [PATCH] ThemeAttributes: fix freezing when changing avatar --- src/plugins/themeAttributes/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/themeAttributes/index.ts b/src/plugins/themeAttributes/index.ts index b80844546..2a613967c 100644 --- a/src/plugins/themeAttributes/index.ts +++ b/src/plugins/themeAttributes/index.ts @@ -55,6 +55,8 @@ export default definePlugin({ ], getAvatarStyles(src: string) { + if (src.startsWith("data:")) return {}; + return Object.fromEntries( [128, 256, 512, 1024, 2048, 4096].map(size => [ `--avatar-url-${size}`,