Skip to content

Commit 4a72e4b

Browse files
committed
fix the compilation error (Node has no access to the window object)
1 parent 652c748 commit 4a72e4b

File tree

1 file changed

+1
-2
lines changed
  • docusaurus/src/theme/MDXComponents

1 file changed

+1
-2
lines changed

docusaurus/src/theme/MDXComponents/A.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ export default function AWrapper(props: Props): JSX.Element {
99
const { href } = props;
1010
const isExternal =
1111
href?.startsWith('http') &&
12-
!href?.startsWith('https://knapsackpro.com') &&
13-
!href?.includes(window.location.origin);
12+
!href?.startsWith('https://knapsackpro.com')
1413

1514
return (
1615
<>

0 commit comments

Comments
 (0)