diff --git a/ng-app/dist-file.tar.gz b/ng-app/dist-file.tar.gz index 64124a1..d466dcb 100644 Binary files a/ng-app/dist-file.tar.gz and b/ng-app/dist-file.tar.gz differ diff --git a/ng-app/dist.tar.gz b/ng-app/dist.tar.gz deleted file mode 100644 index 6e93e3d..0000000 Binary files a/ng-app/dist.tar.gz and /dev/null differ diff --git a/ng-app/src/routes/WalletCreate.svelte b/ng-app/src/routes/WalletCreate.svelte index 114016b..7226453 100644 --- a/ng-app/src/routes/WalletCreate.svelte +++ b/ng-app/src/routes/WalletCreate.svelte @@ -109,6 +109,7 @@ let cloud_link; let animateDownload = true; let invitation; + let pre_invitation; let unsub_register_accepted; let unsub_register_error; @@ -159,7 +160,10 @@ param.get("i") ); console.log(invitation); - if (!invitation) { + if (invitation && invitation.V0.url) { + pre_invitation = invitation; + invitation = undefined; + } else if (!invitation) { let redirect = await ng.get_ngone_url_of_invitation(param.get("i")); if (redirect) { console.error("got an invitation for another broker. redirecting"); @@ -169,6 +173,11 @@ console.error("invalid invitation. ignoring it"); } } + } else { + pre_invitation = await ng.get_local_bootstrap_with_public( + location.href + ); + console.log("pre_invitation", pre_invitation); } } scrollToTop(); @@ -176,10 +185,11 @@ function create_wallet() { intro = false; - if (invitation && invitation.V0.url) { - // we redirect to the TOS url of the invitation. - window.location.href = invitation.V0.url; - } + // if (invitation && invitation.V0.url) { + // // we redirect to the TOS url of the invitation. + // wait = "Redirecting to TOS"; + // window.location.href = invitation.V0.url; + // } scrollToTop(); } @@ -890,39 +900,67 @@