Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Jul 26, 2024
1 parent 85960b0 commit 5d36652
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/theme/logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import ThemedImage from "@theme/ThemedImage";
import useBaseUrl from "@docusaurus/useBaseUrl";
import ChainGPT from '@site/src/theme/ChainGPT';
import BrowserOnly from "@docusaurus/BrowserOnly";

/**
* Reference: https://docusaurus.io/docs/markdown-features/assets#themed-images
Expand All @@ -16,11 +17,13 @@ export default function Logo(): JSX.Element {
dark: useBaseUrl("/img/Logo.aelf.white.svg"),
}}
/>
{!window.location.host.includes("aelf.com") && (
<div>
<ChainGPT />
</div>
)}
<BrowserOnly>
{() => (
<div>
{!window.location.host.includes("aelf.com") ? <ChainGPT /> : null}
</div>
)}
</BrowserOnly>
</>
);
}

0 comments on commit 5d36652

Please sign in to comment.