mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
fix lint errors
This commit is contained in:
parent
53e8ba1b7b
commit
86ad5e0b19
@ -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 })
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user