docs: fix example misprints (#31284)

PR Close #31284
This commit is contained in:
Stepan Suvorov 2019-06-26 15:04:06 +02:00 committed by Alex Rickabaugh
parent 4f38419e33
commit f96a81a818
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ Running this command will:
// Create a new
const worker = new Worker('./app.worker', { type: 'module' });
worker.onmessage = ({ data }) => {
console.log('page got message: $\{data\}');
console.log(`page got message: ${data}`);
};
worker.postMessage('hello');
} else {