Skip to content

Commit ab8e220

Browse files
committed
temp fix for html pasted content validation. fix #28. fix #26
1 parent 2e0b7a7 commit ab8e220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webview/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function stripInitialIndent(html, indent) {
9696

9797
document.addEventListener('paste', e => {
9898
const innerHTML = e.clipboardData.getData('text/html')
99-
if (!innerHTML.startsWith(`<meta charset='utf-8'>`)) {
99+
if (!innerHTML.startsWith(`<meta`)) {
100100
postMessage('invalidPasteContent')
101101
return
102102
}

0 commit comments

Comments
 (0)