         titleBarStyle: 'hidden-inset' if process.platform is 'darwin'
         # autoHideMenuBar : true unless process.platform is 'darwin'
     }
-
-    aboutWindow = new BrowserWindow {
-      width: 500
-      height: 500
-      show: false
-      parent: mainWindow
-      resizable: false
-    }
-
-    aboutWindow.loadURL 'file://' + __dirname + '/ui/about.html'
 
     # and load the index.html of the app. this may however be yanked
     # away if we must do auth.


    # Help -> About opens the about window
    ipc.on 'show-about', ->
        aboutWindow.setMenu(null)
        aboutWindow.show()

    ipc.on 'errorInWindow', (ev, error) ->
        console.log "Error on YakYak window:\n", error, "\n--- End of error message in YakYak window."

quit = ->
    global.forceClose = true
    # force all windows to close
    aboutWindow.destroy() if aboutWindow?
    mainWindow.destroy() if mainWindow?
    app.quit()
    return

