mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
intercom check
This commit is contained in:
@@ -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");
|
||||
};
|
||||
@@ -12,6 +12,7 @@ export const IntercomProvider = ({ children }: { children: any }) => {
|
||||
const router = useRouter();
|
||||
|
||||
if (typeof window !== "undefined") {
|
||||
console.log("window is defined");
|
||||
loadIntercom();
|
||||
bootIntercom();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user