Open SarantopoulosKon opened 2 years ago
Inside a web worker runs as in a node environment since window is not defined
const isNode = !(typeof window !== 'undefined' && this === window); // Returns true since there is no window object inside a web worker
Inside a web worker runs as in a node environment since window is not defined