Skip to content

Commit

Permalink
added user activation logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dmengelt committed Feb 7, 2025
1 parent 719b0c4 commit 2596deb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion public/iframed.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,13 @@
if (event.origin !== "https://dmengelt.github.io") {
console.log("Received message but origin was not dmengelt.github.io");
} else {
console.log("Received event: " + event.data + " - triggering focusPaymentSheet()");
console.log("Received event: " + event.data);
if (navigator.userActivation.isActive) {
console.log("!!! userActivation.isActive is TRUE! triggering focusPaymentSheet()");
} else {
console.log("!!! userActivation.isActive is FALSE! triggering focusPaymentSheet()");
}
// triggering focusPaymentSheet() no matter what the value of userActivation.isActive is for now!
paymentsClient.focusPaymentSheet();
}
},
Expand Down

0 comments on commit 2596deb

Please sign in to comment.