mirror of https://github.com/keeweb/keeweb.git
removed unused code
This commit is contained in:
parent
8cac1b8cdd
commit
312545cf08
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue