Skip to content

Commit

Permalink
Added a check for the presence of pk2, rnd, rndsig query params
Browse files Browse the repository at this point in the history
  • Loading branch information
Maceeran committed Sep 16, 2024
1 parent 695b0f5 commit 0a0afa0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src.ts/web/examples/rnd_rndsig_validation.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ <h1>LibHaLo Demo</h1>
const rnd = urlParams.get('rnd');
const rndsig = urlParams.get('rndsig');

// Check if pk2, rnd & rndsig parameters are present
if (!pk2 || !rnd || !rndsig) {
log("Please provide a URL with pk2, rnd & rndsig parameters");
return;
}

// Handle displaying/hiding the noArgsError message
if (!url) {
document
Expand Down

0 comments on commit 0a0afa0

Please sign in to comment.