From 34d634a94fc4dc810ffedb7649ab297fcade553e Mon Sep 17 00:00:00 2001 From: Wietse Wind Date: Tue, 22 Nov 2022 00:35:00 +0100 Subject: [PATCH] Fix options --- src/index.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1b6b69f..a3070d8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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; } }