2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-09-29 04:39:04 +00:00
nativefier/app/src/preload.js
Jia Hao 5c204eec77 Cleanup app files and directories
- 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
2016-01-22 19:57:39 +08:00

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);
});