External scripts in the main process


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.


The answer, turns out, is to use IPC.