Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
/**
* Handle with module API events.
*/
workerHandle.onModuleAPIEvent = handleModuleAPIEvent;
/**
* Correct the page font-size
*/
const { documentElement } = globalThis.document;
// Correct the page font-size
const clientWidth = typeof VIEWPORT_WIDTH !== 'undefined' ? VIEWPORT_WIDTH : documentElement.clientWidth;
documentElement.style.fontSize = clientWidth / 750 * 100 + 'px';
return domRenderer({
worker: workerHandle,
tagNamePrefix: TAG_NAME_PREFIX,
mountNode,
});
}