Skip to content

Commit 248c3f4

Browse files
committed
fix(api/internal/init.js): fix 'getFile' call
1 parent a1b17bd commit 248c3f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/internal/init.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ if ((globalThis.window) === globalThis) {
135135

136136
for (const handle of handles) {
137137
if (typeof handle.getFile === 'function') {
138-
const file = handle.getFile()
138+
const file = await handle.getFile()
139139
const buffer = new Uint8Array(await file.arrayBuffer())
140-
files.push(new File(buffer, file.name, {
140+
files.push(new File([buffer], file.name, {
141141
lastModified: file.lastModified,
142142
type: file.type
143143
}))

0 commit comments

Comments
 (0)