   # Start listening the web app
   new IPCReporter
 
+  mainWindow.webContents.on 'new-window', (e, url) ->
+    e.preventDefault()
+    shell.openExternal url
   # Emitted when the window is closed.
   mainWindow.on 'closed', ->
     # Dereference the window object, usually you would store windows

    backgroundColor   : '#131313'
    webPreferences    :
      partition       : 'persist:koding'
      preload         : path.resolve path.join __dirname, 'noderequire.js'
      nodeIntegration : no

  # and load the index.html of the app.
  mainWindow.loadURL ROOT_URL

  # Open the DevTools.
  # mainWindow.webContents.openDevTools()

  # Set application menu
  new ApplicationMenu

    # when you should delete the corresponding element.
    mainWindow = null

