below code is from serviceworker.js .
self.addEventListener('message', function (e) {
//received the message
});
In the main thread , i use the work.postMessage(xxx) to communicate with web worker. first open new page and input address, the worker can receive the message. but i click the refresh button to refresh this page, sometimes the worker can receive the message. sometimes the worker cannot receive the message.
This issue only occur on Microsoft Edge of win10 32 bit. For Edge of win10 64 bit , it work well.
Chrome, IE do not have same issue on win10 32 bit.
Thanks