Skip to content

Commit

Permalink
Fix options
Browse files Browse the repository at this point in the history
  • Loading branch information
WietseWind committed Nov 21, 2022
1 parent 29a4694 commit 34d634a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,13 @@ export class XummPkceThread extends EventEmitter {
typeof optionsOrRedirectUrl === "object" &&
optionsOrRedirectUrl
) {
if (typeof this.options.redirectUrl === "string") {
this.options.redirectUrl = this.options.redirectUrl;
if (typeof optionsOrRedirectUrl.redirectUrl === "string") {
this.options.redirectUrl = optionsOrRedirectUrl.redirectUrl;
}
if (typeof this.options.rememberJwt === "boolean") {
this.options.rememberJwt = this.options.rememberJwt;
if (typeof optionsOrRedirectUrl.rememberJwt === "boolean") {
}
if (typeof this.options.storage === "object") {
this.options.storage = this.options.storage;
if (typeof optionsOrRedirectUrl.storage === "object") {
this.options.storage = optionsOrRedirectUrl.storage;
}
}

Expand Down

0 comments on commit 34d634a

Please sign in to comment.