I\'m getting this error on any console.log statement in my codebase. This affects only Safari 11.0 (12604.1.38.1.7) on Mac 10.16.6
How can i resolve this and ho
The main answer here, led me down the wrong path.
Some notes:
My code was:
self.postMessage(data,null)
Now my working code is:
const selfie: Worker = self as any;
selfie.postMessage(data)
I find my answer to be relevant because others will use TypeScript and think self.postMessage() needs to have two arguments... And then Safari will break if the second argument is null like several online articles recommend to use.