Skip to content

Commit

Permalink
fix(payment_link): move redirection fn to global scope for open links (
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif-m authored Jul 31, 2024
1 parent 540ef07 commit 7ddfbf5
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ function initializeSDK() {
setTimeout(() => {
document.body.removeChild(shimmer);
}, 500);
}

/**
* Use - redirect to /payment_link/status
*/
function redirectToStatus() {
var arr = window.location.pathname.split("/");
arr.splice(0, 2);
arr.unshift("status");
arr.unshift("payment_link");
window.location.href = window.location.origin + "/" + arr.join("/");
}
/**
* Use - redirect to /payment_link/status
*/
function redirectToStatus() {
var arr = window.location.pathname.split("/");
arr.splice(0, 2);
arr.unshift("status");
arr.unshift("payment_link");
window.location.href = window.location.origin + "/" + arr.join("/");
}

0 comments on commit 7ddfbf5

Please # to comment.