()
| 3 | |
| 4 | // Helper function to log to both DevTools-for-DevTools console and inspected page console |
| 5 | const debugLog = () => { |
| 6 | // console.log(...arguments); // Logs to DevTools-for-DevTools console |
| 7 | // const message = [...arguments].map(arg => |
| 8 | // typeof arg === 'object' ? JSON.stringify(arg) : String(arg) |
| 9 | // ).join(' '); |
| 10 | // chrome.devtools.inspectedWindow.eval(`console.log('[DevTools]', ${JSON.stringify(message)})`); |
| 11 | }; |
| 12 | |
| 13 | const backgroundPageConnection = chrome.runtime.connect({name: 'devtools-page'}); |
| 14 |
no outgoing calls
no test coverage detected