Skip to content

Commit

Permalink
fix the compilation error (Node has no access to the window object)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturT committed Jan 16, 2025
1 parent 652c748 commit 4a72e4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docusaurus/src/theme/MDXComponents/A.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export default function AWrapper(props: Props): JSX.Element {
const { href } = props;
const isExternal =
href?.startsWith('http') &&
!href?.startsWith('https://knapsackpro.com') &&
!href?.includes(window.location.origin);
!href?.startsWith('https://knapsackpro.com')

return (
<>
Expand Down

0 comments on commit 4a72e4b

Please sign in to comment.