       preload         : NODE_REQUIRE
       nodeIntegration : no
 
-
-  # Set application menu
-  new ApplicationMenu
-
-  # Start listening the web app
-  new IPCReporter
-
-  # Prepare AppStorage
-  storage = new Storage template : STORAGE_TEMPLATE
-
   # and load the index.html of the app.
   mainWindow.loadURL storage.get()['last-route'] or ROOT_URL
 


module.exports = ->

  # Create the browser window.
  mainWindow = new BrowserWindow
    width             : 1280

    e.preventDefault()
    shell.openExternal url

  # Emitted when the window is closed.
  mainWindow.on 'close', ->
    # Dereference the window object, usually you would store windows
    # in an array if your app supports multi windows, this is the time
    # when you should delete the corresponding element.
    syncStorage ->
      mainWindow = null
