Skip to content

Commit

Permalink
Fix triggerhosted URL
Browse files Browse the repository at this point in the history
  • Loading branch information
peterszerzo committed Jun 24, 2024
1 parent 581dea9 commit 3e39d12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/journey-manager/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ const resolveTriggers = async (
}
const baseUrl =
config.dev ?? false
? "https://triggers.dev.nlx.ai"
: "https://triggers.nlx.ai";
? "https://triggers.dev.mm.nlx.ai"
: "https://triggers.mm.nlx.ai";
const triggersFromCdnRequest = await fetch(
`${baseUrl}/${config.workspaceId}/${config.journeyId}.json`,
);
Expand All @@ -229,10 +229,10 @@ const resolveTriggers = async (
};

// eslint-disable-next-line @typescript-eslint/promise-function-async
const waitUntilDomContentLoaded = (): Promise<unknown> => {
const waitUntilDomContentLoaded = (): Promise<void> => {
if (document.readyState === "loading") {
return new Promise((resolve) => {
window.addEventListener("DOMContentLoaded", (event) => {
window.addEventListener("DOMContentLoaded", () => {
resolve();
});
});
Expand Down

0 comments on commit 3e39d12

Please sign in to comment.