Electron: Any way to reload native modules without restarting? (i.e. like Ctrl/Cmd+R for app)


#1

I’m developing a pepper plug-in within electron and it would be great to be able to have it refresh when it’s updated by the build system without having to relaunch the electron application.


#2

To my knowledge there isn’t a way to reload native modules, no.


#3

ctrl-R does refresh the page (and F5?)

apparently you can do it programmatically if you had a button to click or something…

var remote = require('remote');
remote.getCurrentWindow().reload();