mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-09-29 04:39:04 +00:00
5c204eec77
- All source files are now in `src` and will be compiled and copied over to `lib` on `npm run build-app` - Add logging of `appArgs` in preload on startup - Use node `path` module to resolve pathnames instead of concatenating strings together
15 lines
332 B
JavaScript
15 lines
332 B
JavaScript
/**
|
|
Preload file that will be executed in the renderer process
|
|
*/
|
|
|
|
var ipc = require('electron').ipcRenderer;
|
|
|
|
document.addEventListener("DOMContentLoaded", function(event) {
|
|
// do things
|
|
});
|
|
|
|
ipc.on('params', function (event, message) {
|
|
var appArgs = JSON.parse(message);
|
|
console.log('nativefier.json', appArgs);
|
|
});
|