()
| 13 | |
| 14 | // Electron renderers with nodeIntegration enabled are detected as Node.js so we specifically test for them |
| 15 | function isElectronNodeRenderer(): boolean { |
| 16 | const process = (GLOBAL_OBJ as typeof GLOBAL_OBJ & { process?: ElectronProcess }).process; |
| 17 | return process?.type === 'renderer'; |
| 18 | } |