Skip to content

Commit

Permalink
refactor: create blob using Uint8Array
Browse files Browse the repository at this point in the history
  • Loading branch information
bigaru committed Nov 27, 2024
1 parent 77b3451 commit c6d3881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/javascript/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function View(props: ViewProps) {
let convertedData = val

if (convertedData instanceof Uint8Array) {
convertedData = new Blob([convertedData.buffer], { type: contentType })
convertedData = new Blob([convertedData], { type: contentType })
}

publishRecord[key][0](convertedData, contentType)
Expand Down

0 comments on commit c6d3881

Please sign in to comment.