Skip to content

Commit

Permalink
fix(api/internal/init.js): fix 'getFile' call
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Feb 1, 2025
1 parent a1b17bd commit 248c3f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/internal/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ if ((globalThis.window) === globalThis) {

for (const handle of handles) {
if (typeof handle.getFile === 'function') {
const file = handle.getFile()
const file = await handle.getFile()
const buffer = new Uint8Array(await file.arrayBuffer())
files.push(new File(buffer, file.name, {
files.push(new File([buffer], file.name, {
lastModified: file.lastModified,
type: file.type
}))
Expand Down

0 comments on commit 248c3f4

Please sign in to comment.