Skip to content

Commit

Permalink
test: correct the confusing test case (#6139)
Browse files Browse the repository at this point in the history
  • Loading branch information
ygj6 authored Dec 16, 2021
1 parent b9871bb commit 0be532a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/playground/worker/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@
sharedWorker.port.start()

const tsOutputWorker = new TSOutputWorker()
worker.addEventListener('message', (e) => {
tsOutputWorker.addEventListener('message', (e) => {
text('.pong-ts-output', e.data.msg)
})

document.querySelector('.ping-ts-output').addEventListener('click', () => {
inlineWorker.postMessage('ping')
tsOutputWorker.postMessage('ping')
})

function text(el, text) {
Expand Down

0 comments on commit 0be532a

Please sign in to comment.