Feb 23, 2017 · 1 min read
hi, I am lost in the npm electron universe…
I tried your idea in the index.js, but theres no way to get fs or setup the ipcR.
const electron = window.require(‘electron’);
const fs = electron.remote.require(‘fs’);
var loadApts = JSON.parse(fs.readFileSync(dataLocation));
var ipcR =electron.ipcRenderer;
I think your setup is a good starting point, but I need the electron API.