Skip to content

Commit

Permalink
chore: add TODO to await DataTransferItem.getAsString callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Jan 12, 2025
1 parent 98bc5e0 commit 5d0dcaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/dataTransfer/DataTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export function getBlobFromDataTransferItem(
if (item.kind === 'file') {
return item.getAsFile() as File
}
// TODO: await callback
let data: string = ''
item.getAsString(s => {
data = s
Expand Down

0 comments on commit 5d0dcaf

Please sign in to comment.