MCPcopy Index your code
hub / github.com/InverseUI/InverseUI-Recorder / initAPIInjection

Function initAPIInjection

inject/api_injection.js:38–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 * Initialize API injection on DOM ready
37 */
38export function initAPIInjection() {
39 console.log('[Content Script] Initializing API injection');
40
41 // Inject immediately if DOM is ready, otherwise wait
42 if (document.readyState === 'loading') {
43 document.addEventListener('DOMContentLoaded', injectAPIIntoPage);
44 } else {
45 injectAPIIntoPage();
46 }
47}

Callers 1

initializeContentScriptFunction · 0.85

Calls 1

injectAPIIntoPageFunction · 0.85

Tested by

no test coverage detected