window.application = {version: 2}; navigator.plugins = []; window.__TAG_ASSISTANT_API = window.__TAG_ASSISTANT_API || Object.assign({}, window.__tag_assistant_accessor, { // Override setReceiver to enable main <-> worker communication setReceiver: (receiver) => { // The receiving function is assigned to `window[tagAssistantForwarderName]`, // allowing it to be called from the main thread. window.__tag_assistant_forwarder = receiver; // The original setReceiver function is called to notify the main thread that // the receiver has been set. window.__tag_assistant_accessor?.setReceiver(); } });