ThemeAttributes: fix freezing when changing avatar
This commit is contained in:
parent
d897dab054
commit
e7e298d2e7
1 changed files with 2 additions and 0 deletions
|
@ -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}`,
|
||||
|
|
Loading…
Reference in a new issue