-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pvw-3097-caching-demo-rp' into 'main'
PVW-3097: Use memory-serve in demo RP to prevent undesired caching of assets See merge request wallet/nl-wallet!1081
- Loading branch information
Showing
8 changed files
with
114 additions
and
23 deletions.
There are no files selected for viewing
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
const wallet_buttons = document.getElementsByTagName("nl-wallet-button"); | ||
const wallet_buttons = document.getElementsByTagName("nl-wallet-button") | ||
for (let button of wallet_buttons) { | ||
button.addEventListener( | ||
"success", | ||
(e) => { | ||
if (e.detail && e.detail.length > 1) { | ||
const session_token = e.detail[0]; | ||
const session_type = e.detail[1]; | ||
const usecase = button.attributes.getNamedItem("usecase").value; | ||
button.addEventListener( | ||
"success", | ||
(e) => { | ||
if (e.detail && e.detail.length > 1) { | ||
const session_token = e.detail[0] | ||
const session_type = e.detail[1] | ||
const usecase = button.attributes.getNamedItem("usecase").value | ||
|
||
if (session_type === "cross_device") { | ||
window.location.assign("../" + usecase + "/return?session_token=" + session_token); | ||
} | ||
} | ||
}, | ||
false, | ||
); | ||
if (session_type === "cross_device") { | ||
window.location.assign("../" + usecase + "/return?session_token=" + session_token) | ||
} | ||
} | ||
}, | ||
false, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters