MCPcopy Create free account
hub / github.com/pbakaus/impeccable / loadDetectScript

Function loadDetectScript

skill/scripts/live-browser.js:9897–9904  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9895 }
9896
9897 function loadDetectScript() {
9898 if (detectScriptLoaded) return;
9899 detectScriptLoaded = true;
9900 const s = document.createElement('script');
9901 s.src = 'http://localhost:' + PORT + '/detect.js';
9902 s.dataset.impeccableExtension = 'true';
9903 document.head.appendChild(s);
9904 }
9905
9906 function onDetectMessage(e) {
9907 if (!e.data || typeof e.data.source !== 'string') return;

Callers 1

toggleDetectFunction · 0.70

Calls 1

createElementMethod · 0.80

Tested by

no test coverage detected