1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-28 07:50:55 +02:00

removed unused code

This commit is contained in:
antelle 2017-04-16 17:24:58 +02:00
parent 8cac1b8cdd
commit 312545cf08

View File

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