generated from nhcarrigan/template
fix: don't load crisp until window is defined i guess?
This commit is contained in:
parent
9e9df55ad2
commit
d7927fcf0d
@ -17,7 +17,9 @@ import React, { type JSX } from "react";
|
||||
* @returns A JSX element.
|
||||
*/
|
||||
export const Footer = (): JSX.Element | null => {
|
||||
Crisp.configure("5398ce41-4ceb-4e31-9049-4c784a70179a");
|
||||
if (typeof window !== "undefined") {
|
||||
Crisp.configure("5398ce41-4ceb-4e31-9049-4c784a70179a");
|
||||
}
|
||||
const pathname = usePathname();
|
||||
const isRootPath = pathname === "/";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user