It looks like something is posting data to the Service Worker. This is not supported, the SW is just there to handle offline support.
But instead of data (line: 370), wouldn't it be correct to use e.data?
Develop games in your browser. Powerful, performant & highly capable.