     , false, (ev, conv_id, timestamp, max) -> conv_id
 
     ipc.on 'togglefullscreen', ->
-      mainWindow.setFullScreen not mainWindow.isFullScreen()
+        mainWindow.setFullScreen not mainWindow.isFullScreen()
 
     # bye bye
     ipc.on 'logout', logout


    # Launch fullscreen with DevTools open, usage: npm run debug
    if debug
      mainWindow.webContents.openDevTools()
      mainWindow.maximize()
      mainWindow.show()
      try
        require('devtron').install()
      catch
          #do nothing

    # and load the index.html of the app. this may however be yanked

# Only allow a single active instance
shouldQuit = app.makeSingleInstance ->
    mainWindow.show() if mainWindow
    return true

if shouldQuit
    app.quit()
    return

global.i18nOpts = { opts: null, locale: null }

