update content

This commit is contained in:
Ayo 2023-03-21 22:31:38 +01:00
parent 1085ca0061
commit 04aaa9108e

View file

@ -241,7 +241,7 @@ Check your devtools console and try clicking the buttons to see what's happening
If you see this, your app is now creating and using a web worker.
👨🏻‍💻 Now update the `sortHeroes` method so that it will call `worker.postMessage` with the received `flag` argument.
👨🏻‍💻 Now update the `sortHeroes` method so that it will call `worker.postMessage` with an object containing `heroes` and the received `flag` argument.
👨🏻‍💻 Also, update the `worker.onmessage` callback so that it will assign the processed data to `this.heroes`.