mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
feat: performance improvements to profile picture plugin
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user