Commit 738fc9e2 authored by Joel Collins's avatar Joel Collins
Browse files

Open _blank links in browser window

parent 3bf80401
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -135,6 +135,11 @@ function createWindow() {
  mainWindow.on("closed", function() {
    mainWindow = null; // Dereference the window object
  });

  mainWindow.webContents.on("new-window", function(event, url) {
    event.preventDefault();
    electron.shell.openExternal(url);
  });
}

// Some APIs can only be used after this event occurs.