Skip to content

Commit

Permalink
Deep link open in "new tab"
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <[email protected]>
  • Loading branch information
loneil committed Feb 27, 2024
1 parent 8cb3c24 commit 5e150e6
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions oidc-controller/api/templates/verified_credentials.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@
<div class="mobile-device">
<h1>Continue with:</h1>

<div class="header-desc success">
<div class="qr-code-image">{{add_asset("circle-check.svg")}}</div>
<div class="qr-code-desc">
<b>Success!</b> You will be redirected shortly.
</div>
</div>

<div class="header-desc expired expired-deep-link">
<div class="qr-code-image">{{add_asset("expired.svg")}}</div>
<div class="qr-code-desc">
Expand All @@ -290,9 +297,10 @@ <h1>Continue with:</h1>
</div>

<a
class="BC-Gov-PrimaryButton"
class="BC-Gov-PrimaryButton"
title="Open BC Wallet"
href="{{wallet_deep_link}}"
target="_blank"
>
BC Wallet
</a>
Expand Down Expand Up @@ -462,7 +470,7 @@ <h1 class="desktop-header">Scan with a Digital Wallet</h1>
const socket = io(location.host, {
path: "/ws/socket.io",
autoConnect: false,
});
});

socket.on("connect", () => {
socket.emit('initialize', { pid: "{{pid}}" });
Expand All @@ -481,7 +489,7 @@ <h1 class="desktop-header">Scan with a Digital Wallet</h1>
case "verified":
setUiElements(".success", false, true, false);
setTimeout(() => {
window.location.replace("{{callback_url}}", { method: "POST" });
window.location.replace("{{callback_url}}", { method: "POST" });
}, 2000);
break;
case "failed":
Expand Down Expand Up @@ -552,7 +560,7 @@ <h1 class="desktop-header">Scan with a Digital Wallet</h1>
fetch(url)
.then((res) => res.json())
.then((data) => {
/*
/*
Possible states:
- not_started
- pending
Expand Down

0 comments on commit 5e150e6

Please sign in to comment.