()
| 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; |
no test coverage detected