Skip to content

Commit d644a4f

Browse files
committed
fix a few minor bugs in #37
1 parent 06f84f3 commit d644a4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/webview/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function stripInitialIndent(html, indent) {
8888
const doc = new DOMParser().parseFromString(html, 'text/html')
8989
const initialSpans = doc.querySelectorAll('div > div span:first-child')
9090
for (let i = 0; i < initialSpans.length; i++) {
91-
initialSpans[i].innerText = initialSpans[i].innerText.slice(indent)
91+
initialSpans[i].textContent = initialSpans[i].textContent.slice(indent)
9292
}
9393
return doc.body.innerHTML
9494
}
@@ -140,13 +140,13 @@ obturateur.addEventListener('mouseover', () => {
140140
{
141141
duration: 40,
142142
onReady: () => {
143-
obturateur.classList = 'obturateur filling'
143+
obturateur.className = 'obturateur filling'
144144
}
145145
},
146146
() => {
147147
setTimeout(() => {
148148
isInAnimation = false
149-
obturateur.classList = 'obturateur'
149+
obturateur.className = 'obturateur'
150150
}, 700)
151151
}
152152
)
@@ -169,7 +169,7 @@ window.addEventListener('message', e => {
169169
snippetContainerNode.style.background = 'none'
170170
}
171171

172-
snippetContainerNode.style.opacity = 1
172+
snippetContainerNode.style.opacity = '1'
173173
} else if (e.data.type === 'update') {
174174
document.execCommand('paste')
175175
}

0 commit comments

Comments
 (0)