Skip to content

Commit

Permalink
fix clipboard is undefined issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch committed Oct 11, 2023
1 parent 01135be commit c1d0f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-link/src/helpers/pasteHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function pasteHandler(options: PasteHandlerOptions): Plugin {
return false
}

const html = event.clipboardData.getData('text/html')
const html = event.clipboardData?.getData('text/html')

const hrefRegex = /href="([^"]*)"/

Expand Down

0 comments on commit c1d0f30

Please sign in to comment.