title: Electron external page errors
body: <p>I'm using electron to access external sites and then execute JavaScript in them. The problem is, I run into errors when accessing these sites. On the dev console when I load up paperstorm.it, I get this error:</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: MobileDetect is not defined
        at paperstorm.it/:57</p>
  </blockquote>
  
  <p>I have also seen errors when loading up other sites such as
  <a href="http://www.supremenewyork.com/" rel="nofollow noreferrer">http://www.supremenewyork.com/</a></p>
  
  <blockquote>
    <p>Uncaught TypeError: this.Loader is not a constructor</p>
  </blockquote>
  
  <p>These errors cause the pages not to work properly, it's an error with how electron loads the page, works fine in other browsers.</p>
  
  <p>I'm loading my page normally:</p>
  
  <pre><code>win = new BrowserWindow({
      width: 800,
      height: 600,
    });
  win.loadURL("https://paperstorm.it/")
  </code></pre>
  
  <p>If it's of any help, I'm running electron on arch Linux using electron 1.6.11. and nodejs 8.5.0</p>