     #       http://stackoverflow.com/questions/729921/settimeout-or-setinterval/731625#731625
     kd.utils.wait 1000, cookieChangeHandler
 
+
   swapAccount: (options, callback) ->
     return { message: 'Login failed!' } unless options
 

bowser                         = require 'bowser'


module.exports           = class MainController extends KDController

  ###


  createSingletons:->

    kd.registerSingleton 'mainController',            this
    kd.registerSingleton 'kontrol',                   new KodingKontrol
    kd.registerSingleton 'appManager',   appManager = new ApplicationManager
    kd.registerSingleton 'notificationController',    new NotificationController
    kd.registerSingleton 'desktopNotifications',      new DesktopNotificationsController
