title: Electron fails to open window when registering a service worker
body: <p>I am building an electron app and wanted to add a service worker.
  The app is built with Webpack. For some reason, this code fails:</p>
  
  <pre><code>import swURL from 'file-loader!./serviceWorker'
  
  navigator.serviceWorker.register(swURL, {scope: './'})
  </code></pre>
  
  <p>I see the asset being outputted by WebPack properly. But, the window does not open and I can not see any error. Not even using <code>DEBUG="*"</code>.</p>
  
  <p>Any idea?</p>