const {app, BrowserWindow} = require('electron');
const path = require('path');

let win
app.on('ready', () => {
  win = new BrowserWindow({
    webPreferences: {
      nodeIntegration: false,
      sandbox: true,
      preload: path.join(__dirname, 'preload.js')
    }
  })
  win.loadURL('file://' + __dirname + '/index.html')
})

console.log("Main initialized");


// In main process.
const ipcMain = require('electron').ipcMain;

ipcMain.on('rpc-request', function(event, rpc, arg) {
  console.log("RPC REQUEST: " + rpc + " " + arg); 
  event.returnValue = 
  `
  { 
   "address": "pUYofdfsgasdpsdpfsaddressrofl"
  }
  `;
});

@@ -207,16 +207,46 @@
 : true,%0A
+      contextIsolation: true,%0A
       pr

add contextIsolation