fix lint errors

This commit is contained in:
Philipp Kühn 2021-09-14 23:02:43 +02:00
parent 53e8ba1b7b
commit 86ad5e0b19

View File

@ -82,11 +82,13 @@ async function init() {
return highlighter
}
// eslint-disable-next-line
self.addEventListener('message', async event => {
init().then(() => {
const { code, language } = event.data
const html = highlighter.codeToHtml(code, language)
// eslint-disable-next-line
self.postMessage({ code, language, html })
})
})