Skip to content

Commit 2b9fd9a

Browse files
committed
temporarily remove html validatoin
1 parent ae714f7 commit 2b9fd9a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 0.2.2 | 2018-02-19
4+
5+
- Remove "Pasted content is invalid" check. Will do proper HTML validation in [#30](https://github.com/octref/polacode/issues/30).
6+
37
### 0.2.1 | 2018-02-19
48

59
- Fix an issue where Polacode incorrectly reports "Pasted content is invalid".

src/webview/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ function stripInitialIndent(html, indent) {
9696

9797
document.addEventListener('paste', e => {
9898
const innerHTML = e.clipboardData.getData('text/html')
99-
if (!innerHTML.startsWith(`<meta`)) {
100-
postMessage('invalidPasteContent')
101-
return
102-
}
10399

104100
const code = e.clipboardData.getData('text/plain')
105101
const minIndent = getMinIndent(code)

0 commit comments

Comments
 (0)