ThemeAttributes: fix freezing when changing avatar
This commit is contained in:
parent
d897dab054
commit
e7e298d2e7
|
@ -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}`,
|
||||||
|
|
Loading…
Reference in a new issue