   # 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

# temp
# get this from config or runtime options - SY
ROOT_URL = 'https://koding.com/Teams'

module.exports = ->


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

