mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-17 17:27:52 +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 CustomIntercomConfig = () => {
|
||||||
const { boot } = useIntercom();
|
const { boot } = useIntercom();
|
||||||
React.useLayoutEffect(() => {
|
React.useLayoutEffect(() => {
|
||||||
|
//NOTE(amine): Don't initiate the intercom widget on the landing page
|
||||||
|
if (typeof window !== "undefined" && window.location.pathname === "/") return;
|
||||||
boot({
|
boot({
|
||||||
alignment: "left",
|
alignment: "left",
|
||||||
horizontalPadding: 23,
|
horizontalPadding: 23,
|
||||||
|
Loading…
Reference in New Issue
Block a user