Skip to content

Commit

Permalink
fix: embed showing chat
Browse files Browse the repository at this point in the history
  • Loading branch information
nizzyabi committed Dec 28, 2024
1 parent 3f0a671 commit 1f27441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/lib/plain/plainChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const PlainChat = () => {
return (
typeof window !== "undefined" &&
window.location.origin === process.env.NEXT_PUBLIC_WEBAPP_URL &&
!restrictedPaths.some((path) => pathname?.startsWith(path.trim()))
!restrictedPaths.some((path) => pathname?.includes(path.trim()))
);
}, [pathname]);

Expand Down

0 comments on commit 1f27441

Please sign in to comment.