External scripts in the main process


#1

I’m trying to require a password to use the dev tools, and the way I plan to do this is by referencing a function in the main process that is defined in the js script. How do I do this? Thanks.


#2

The answer, turns out, is to use IPC.