Skip to content

Commit

Permalink
eds-400 updated backend 3
Browse files Browse the repository at this point in the history
  • Loading branch information
KostiantynFandeliuk committed Sep 18, 2024
1 parent 21ff572 commit 47bb201
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/dropins.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,15 @@ const handleUserOrdersRedirects = () => {
}

if (targetPath) {
console.log("targetPath", targetPath);
window.test.push(targetPath);
function addListPathToWindow(listPathArray) {
if (!window.listPath) {
window.listPath = listPathArray;
} else {
window.listPath.push(...listPathArray);
}
}

addListPathToWindow(targetPath);

redirectTo(targetPath);
}
Expand Down

0 comments on commit 47bb201

Please sign in to comment.