(id, ...args)
| 1 | const { ipcRenderer } = require('electron') |
| 2 | |
| 3 | function customConsoleLog(id, ...args) { |
| 4 | // Convert arguments to strings to avoid cloning issues |
| 5 | const stringArgs = args.map((arg) => |
| 6 | typeof arg === 'object' ? JSON.stringify(arg) : arg, |
| 7 | ); |
| 8 | ipcRenderer.sendToHost('console-log', id, ...stringArgs); |
| 9 | }; |
| 10 | |
| 11 | function waitForElement( |
| 12 | id, |
no outgoing calls
no test coverage detected