Skip to content

Commit

Permalink
ThemeAttributes: fix freezing when changing avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated committed Oct 26, 2024
1 parent d897dab commit e7e298d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/themeAttributes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit e7e298d

Please sign in to comment.