2015-07-05 08:08:13 +02:00
|
|
|
/**
|
2016-01-22 12:57:39 +01:00
|
|
|
Preload file that will be executed in the renderer process
|
2015-07-05 08:08:13 +02:00
|
|
|
*/
|
|
|
|
|
2016-01-19 04:28:04 +01:00
|
|
|
var ipc = require('electron').ipcRenderer;
|
2015-07-05 08:08:13 +02:00
|
|
|
|
2016-01-21 18:32:21 +01:00
|
|
|
document.addEventListener("DOMContentLoaded", function(event) {
|
|
|
|
// do things
|
|
|
|
});
|
2016-01-19 13:26:19 +01:00
|
|
|
|
|
|
|
ipc.on('params', function (event, message) {
|
2015-07-05 08:08:13 +02:00
|
|
|
var appArgs = JSON.parse(message);
|
2016-01-22 12:57:39 +01:00
|
|
|
console.log('nativefier.json', appArgs);
|
2016-01-19 13:26:19 +01:00
|
|
|
});
|