mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
older Safari does not support Blob.arrayBuffer()
This commit is contained in:
parent
b652e3b895
commit
4b941d9461
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ async function serviceCallback(
|
|||
});
|
||||
|
||||
const blob = await result.blob();
|
||||
const arrayBuffer = await blob.arrayBuffer();
|
||||
const uint8Array = new Uint8Array(arrayBuffer);
|
||||
const respBuf = await new Response(blob).arrayBuffer();
|
||||
const uint8Array = new Uint8Array(respBuf);
|
||||
|
||||
callback(null, uint8Array);
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in a new issue