Question about 'window on will-navigate'


Does window.on(‘will-navigate’) from main process not really run on renderer process?


As far as I know, all of the browser API calls have to be done from actual browser windows (AKA renderer processes). If you want your app to coordinate changes across multiple windows when one navigates, you’ll have to use IPC to send messages between them.