Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
postMessage(message) {
// add clientId and pageName for payload.
const payload = { pageName, clientId, ...message };
const data = { target: 'AppWorker', payload };
debug(`r@${clientId}->w`, data);
messageRouter.eventHandler({ data });
},
/**