UserPFP: Fix conflict
This commit is contained in:
parent
7e126aa1c2
commit
015dc5dd82
1 changed files with 2 additions and 0 deletions
|
|
@ -153,6 +153,8 @@ export default definePlugin({
|
|||
|
||||
if (avatars[userId]) {
|
||||
const customUrl = avatars[userId];
|
||||
if (customUrl.startsWith("data:")) return customUrl;
|
||||
|
||||
try {
|
||||
const res = new URL(customUrl);
|
||||
if (size) res.searchParams.set("size", size.toString());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue