mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
working
This commit is contained in:
@@ -92,11 +92,7 @@ export function registerSamplesFromDB(config = userSamplesDBConfig, onComplete =
|
||||
|
||||
async function blobToDataUrl(blob) {
|
||||
return new Promise((resolve) => {
|
||||
var reader = new FileReader();
|
||||
reader.onload = function (event) {
|
||||
resolve(event.target.result);
|
||||
};
|
||||
reader.readAsDataURL(blob);
|
||||
resolve(URL.createObjectURL(blob))
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user