message: electron-135: fixes the raised issue
diff: @@ -252,16 +252,6 @@ function doCreateMainWindow(initialUrl, initialBounds) {
  });
  });
  - // bug in electron is preventing this from working in sandboxed evt...
  - // https://github.com/electron/electron/issues/8841
  - mainWindow.webContents.on('will-navigate', function(event, willNavUrl) {
  - if (!sandboxed) {
  - return;
  - }
  - event.preventDefault();
  - openUrlInDefaultBrower(willNavUrl);
  - });
  -
  // open external links in default browser - a tag with href='_blank' or window.open
  mainWindow.webContents.on('new-window', function (event, newWinUrl,
  frameName, disposition, newWinOptions) {
  @@ -365,6 +355,11 @@ function doCreateMainWindow(initialUrl, initialBounds) {
  });
  });
  + browserWin.webContents.on('new-window', (childEvent, childWinUrl) => {
  + childEvent.preventDefault();
  + openUrlInDefaultBrower(childWinUrl);
  + });
  +
  addWindowKey(newWinKey, browserWin);
  // Method that sends bound changes as soon
  @@ -381,7 +376,7 @@ function doCreateMainWindow(initialUrl, initialBounds) {
  });
  } else {
  event.preventDefault();
  - openUrlInDefaultBrower(newWinUrl)
  + openUrlInDefaultBrower(newWinUrl);
  }
  });
  