electron preload module code example
Example 1: electron pack node update
npm neu erstellen --nodedir=/path/to/electron/vendor/node
Kopieren
Example 2: electron load index.html
mainWindow.loadFile(path.join(__dirname, 'index.html'));
npm neu erstellen --nodedir=/path/to/electron/vendor/node
Kopieren
mainWindow.loadFile(path.join(__dirname, 'index.html'));