removed unused code

This commit is contained in:
antelle 2017-04-16 17:24:58 +02:00
parent 8cac1b8cdd
commit 312545cf08
1 changed files with 1 additions and 3 deletions

View File

@ -127,11 +127,9 @@ _.extend(StorageBase.prototype, {
callback();
return;
}
const responseType = opts.code ? 'code' : 'token';
const url = opts.url + '?client_id={cid}&scope={scope}&response_type={type}&redirect_uri={url}'
const url = opts.url + '?client_id={cid}&scope={scope}&response_type=token&redirect_uri={url}'
.replace('{cid}', encodeURIComponent(opts.clientId))
.replace('{scope}', encodeURIComponent(opts.scope))
.replace('{type}', encodeURIComponent(responseType))
.replace('{url}', encodeURIComponent(this._getOauthRedirectUrl()));
this.logger.debug('OAuth popup opened');
if (!this._openPopup(url, 'OAuth', opts.width, opts.height)) {