Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
fix marketing
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya101master committed Sep 18, 2022
1 parent 901c263 commit 7764728
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/profcomff-root-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ if (!localStorage.getItem("marketing-id")) {
}),
});
});
} else {
fetch(`${marketingHost}/action`, {
method: "POST",
cache: "no-cache",
redirect: "follow",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
user_id: localStorage.getItem("marketing-id"),
action: "app loaded",
path_from: window.location.href,
}),
});
}

applications.forEach(registerApplication);
Expand Down

0 comments on commit 7764728

Please sign in to comment.