mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 11:27:32 +00:00
intercom check
This commit is contained in:
@@ -50,6 +50,7 @@ export const load = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
console.log("loaded", APP_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initializes Intercom
|
// Initializes Intercom
|
||||||
@@ -57,8 +58,10 @@ export const boot = (options = {}) => {
|
|||||||
window &&
|
window &&
|
||||||
window.Intercom &&
|
window.Intercom &&
|
||||||
window.Intercom("boot", { app_id: APP_ID, ...options });
|
window.Intercom("boot", { app_id: APP_ID, ...options });
|
||||||
|
console.log("booted");
|
||||||
};
|
};
|
||||||
|
|
||||||
export const update = () => {
|
export const update = () => {
|
||||||
window && window.Intercom && window.Intercom("update");
|
window && window.Intercom && window.Intercom("update");
|
||||||
|
console.log("updated");
|
||||||
};
|
};
|
||||||
@@ -12,6 +12,7 @@ export const IntercomProvider = ({ children }: { children: any }) => {
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
if (typeof window !== "undefined") {
|
if (typeof window !== "undefined") {
|
||||||
|
console.log("window is defined");
|
||||||
loadIntercom();
|
loadIntercom();
|
||||||
bootIntercom();
|
bootIntercom();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user