Skip to content

Commit

Permalink
fix(workers/dprint.cjs): TypeError: r.buffer is not a function (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfield550 authored Nov 30, 2024
1 parent e543e8b commit 1485e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workers/dprint.cjs
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ async function loadBuffer(data) {
return Buffer.from(base64, 'base64')
}
else if (data.match(/^[\w-]+:\/\//)) {
return fetch(data).then(r => r.buffer())
return fetch(data).then(r => r.arrayBuffer())
}
else {
return fs.readFile(data)

0 comments on commit 1485e93

Please sign in to comment.