<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Matterfront</title>
  <style>
    webview {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
    }
  </style>
  <script>
    // force load electron
    process.versions['electron']
  </script>
  <script src='menu.js'></script>
  <script src='load-src.js'></script>
  </head>
  <body>
    <webview id='mattermost-remote' src partition='persist:mattermost'></webview>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Matterfront</title>
  <style>
    webview {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
    }
  </style>
  <script>
    // force load electron
    process.versions['electron']
  </script>
  <script src='menu.js'></script>
  <script src='load-src.js'></script>
  <script>
    onload = function() {
      var webview = document.getElementById("mattermost-remote");
      webview.addEventListener('new-window', function(e) {
         require('shell').openExternal(e.url);
       });
    }
  </script>
  </head>
  <body>
    <webview id='mattermost-remote' src partition='persist:mattermost'></webview>
  </body>
</html>

Allow links to be opened in an external browser
Allow links to be opened in an external browser
