     backgroundColor   : '#131313'
     webPreferences    :
       partition       : 'persist:koding'
-      preload         : path.resolve path.join __dirname, 'noderequire.js'
+      preload         : NODE_REQUIRE
       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

  mainWindow.webContents.on 'new-window', (e, url) ->
    e.preventDefault()
    shell.openExternal url

# temp
# get this from config or runtime options - SY
ROOT_URL = 'https://koding.com/Teams'
NODE_REQUIRE     = path.resolve path.join __dirname, 'noderequire.js'

module.exports = ->

