Skip to content

Commit e78643a

Browse files
committed
Don't convert DataTransfer.types array to another array
1 parent 3dab69e commit e78643a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/paste-markdown-html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function trimAfter(text: string, search = ''): {part: string; index: number} {
7676
}
7777

7878
function hasHTML(transfer: DataTransfer): boolean {
79-
return Array.from(transfer.types).includes('text/html')
79+
return transfer.types.includes('text/html')
8080
}
8181

8282
function linkify(element: HTMLAnchorElement): string {

0 commit comments

Comments
 (0)