feat: performance improvements to profile picture plugin

This commit is contained in:
SethBurkart123
2025-06-04 16:14:46 +10:00
parent 4b67736da2
commit c218f184c0
2 changed files with 6 additions and 3 deletions
@@ -43,6 +43,7 @@
const newBlobUrl = URL.createObjectURL(file)
value = newBlobUrl
blobUrl = newBlobUrl
window.dispatchEvent(new Event('profile-picture-updated'))
}
function onFileChange() {
@@ -62,6 +63,7 @@
}
value = undefined
await store.removeItem('profile-picture')
window.dispatchEvent(new Event('profile-picture-updated'))
}
</script>