how to import node render electron code example
Example 1: call node.js file electron
myButton.onclick = function() {
require('./getuser');
};
Example 2: electron load index.html
mainWindow.loadFile(path.join(__dirname, 'index.html'));
myButton.onclick = function() {
require('./getuser');
};
mainWindow.loadFile(path.join(__dirname, 'index.html'));