mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-18 17:04:32 -06:00
make this a worklet?>
This commit is contained in:
@@ -42,6 +42,7 @@ export function fetchItemImage(itemId: string, imageType: ImageType, width: numb
|
||||
function blobToBase64(blob : Blob) {
|
||||
return new Promise<string>((resolve, _) => {
|
||||
runOnRuntime(backgroundRuntime, (blob : Blob) => {
|
||||
'worklet'
|
||||
const reader = new FileReader();
|
||||
reader.onloadend = () => resolve(reader.result as string);
|
||||
reader.readAsDataURL(blob);
|
||||
|
||||
Reference in New Issue
Block a user