mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-10 17:49:22 +00:00
fix: allow any image source but disallow base64
This commit is contained in:
@@ -35,12 +35,7 @@
|
||||
|
||||
isLoading = true;
|
||||
|
||||
const reader = new FileReader();
|
||||
reader.onload = (event) => {
|
||||
imageDataURL = event.target?.result as string;
|
||||
};
|
||||
reader.readAsDataURL(file);
|
||||
|
||||
imageDataURL = URL.createObjectURL(file);
|
||||
await updateCallback(file).catch(() => {
|
||||
imageDataURL = cachedProfilePicture.getUrl(userId);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user