title: Electron - How to load a html file into the current window?
body: <p>I was looking all around: docs, google, etc., on how to load a html file in the main window of an electron app, but I can't find a way.</p>
  
  <p>Is it really this complicated or dead simple? </p>
  
  <p>With what I have came up is ajax, thus works:</p>
  
  <pre><code>$("#main").load("./views/details.html");
  </code></pre>
  
  <p>Another method I have found is via remote:</p>
  
  <pre><code>const {BrowserWindow} = require('electron').remote
  let win = new BrowserWindow({width: 800, height: 600})
  win.loadURL('https://github.com')
  </code></pre>
  
  <p>But this opens always a new window, and I need to replace the existing page</p>