mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
intercom debugging
This commit is contained in:
@@ -54,7 +54,7 @@ export const load = () => {
|
|||||||
|
|
||||||
// Initializes Intercom
|
// Initializes Intercom
|
||||||
export const boot = (options = {}) => {
|
export const boot = (options = {}) => {
|
||||||
console.log("boot", options)
|
console.log("boot", options, { app_id: APP_ID, ...options })
|
||||||
window &&
|
window &&
|
||||||
window.Intercom &&
|
window.Intercom &&
|
||||||
window.Intercom("boot", { app_id: APP_ID, ...options });
|
window.Intercom("boot", { app_id: APP_ID, ...options });
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export const IntercomProvider = ({ children }: { children: any }) => {
|
|||||||
if (typeof window !== "undefined") {
|
if (typeof window !== "undefined") {
|
||||||
console.log("window is defined");
|
console.log("window is defined");
|
||||||
loadIntercom();
|
loadIntercom();
|
||||||
bootIntercom({name: `${user.firstName} ${user.lastName}`, email: user.email});
|
bootIntercom({name: `${user?.firstName || ""} ${user?.lastName || ""}`, email: user?.email || ""});
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user