code: function popupNWLogin(params) {
  	var url = core.REDIRECT_URL + 'oauth2/authorize?' + util.param(params);
  
    var win = nwGUI.Window.open(url, {
      title: 'Login with TwitchTV',
      width: WIDTH,
      height: HEIGHT,
      toolbar: false,
      show: false,
      resizable: true
    });
  
    win.on('loaded', function() {
      var w = win.window;
      if (w.location.hostname == 'api.twitch.tv' && w.location.pathname == '/kraken/') {
        core.setSession(util.parseFragment(w.location.hash));
  
        auth.getStatus(function(err, status) {
          if (status.authenticated) {
            core.events.emit('auth.login', status);
          }
        });
  
        win.close();
      }
      else {
        win.show();
        win.focus();
      }
    });
  }
docs: Opens a login popup using NW.js's API version 0.12 or lower
  
  @private
  @method popupNWLogin
  @param {Array|Object} params