ThemeAttributes: fix freezing when changing avatar

This commit is contained in:
Vendicated 2024-10-26 13:48:15 +02:00
parent d897dab054
commit e7e298d2e7
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -55,6 +55,8 @@ export default definePlugin({
], ],
getAvatarStyles(src: string) { getAvatarStyles(src: string) {
if (src.startsWith("data:")) return {};
return Object.fromEntries( return Object.fromEntries(
[128, 256, 512, 1024, 2048, 4096].map(size => [ [128, 256, 512, 1024, 2048, 4096].map(size => [
`--avatar-url-${size}`, `--avatar-url-${size}`,