Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

intercom check

Vladyslav Matsiiako7b3bd5438630
diff --git a/frontend/src/components/utilities/intercom/intercom.ts b/frontend/src/components/utilities/intercom/intercom.ts
index 94079bc2bd..6de514ff4f 100644
--- a/frontend/src/components/utilities/intercom/intercom.ts
+++ b/frontend/src/components/utilities/intercom/intercom.ts
@@ -50,6 +50,7 @@ export const load = () => {
}
}
})();
+ console.log("loaded", APP_ID);
}
// Initializes Intercom
@@ -57,8 +58,10 @@ export const boot = (options = {}) => {
window &&
window.Intercom &&
window.Intercom("boot", { app_id: APP_ID, ...options });
+ console.log("booted");
};
export const update = () => {
window && window.Intercom && window.Intercom("update");
+ console.log("updated");
};
\ No newline at end of file
diff --git a/frontend/src/components/utilities/intercom/intercomProvider.ts b/frontend/src/components/utilities/intercom/intercomProvider.ts
index e7944a7b16..1c033da7f3 100644
--- a/frontend/src/components/utilities/intercom/intercomProvider.ts
+++ b/frontend/src/components/utilities/intercom/intercomProvider.ts
@@ -12,6 +12,7 @@ export const IntercomProvider = ({ children }: { children: any }) => {
const router = useRouter();
if (typeof window !== "undefined") {
+ console.log("window is defined");
loadIntercom();
bootIntercom();
}