parent
4f38419e33
commit
f96a81a818
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue