mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-11 22:07:08 +03:00
hide the intercom widget on the landing page
This commit is contained in:
parent
5ebfb163e7
commit
fe7999a745
@ -16,6 +16,8 @@ const INTERCOM_APP_ID = "jwgbampk";
|
||||
const CustomIntercomConfig = () => {
|
||||
const { boot } = useIntercom();
|
||||
React.useLayoutEffect(() => {
|
||||
//NOTE(amine): Don't initiate the intercom widget on the landing page
|
||||
if (typeof window !== "undefined" && window.location.pathname === "/") return;
|
||||
boot({
|
||||
alignment: "left",
|
||||
horizontalPadding: 23,
|
||||
|
Loading…
Reference in New Issue
Block a user