Skip to content

Commit f02f2c2

Browse files
committed
added log
1 parent 4aa6b4c commit f02f2c2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/pages/Chat.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ const MemoizedChat = React.memo(function ChatComponent({
3434
const allowedDomains =
3535
import.meta.env.VITE_APP_ALLOWED_DOMAINS?.split(',') || [];
3636
const currentDomain = window.location.hostname;
37-
37+
3838
if (!allowedDomains.includes(currentDomain)) {
3939
return undefined;
4040
}
4141

42+
console.log("currentDomain", currentDomain, allowedDomains.includes(currentDomain));
43+
4244
return ({
4345
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
4446
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,

0 commit comments

Comments
 (0)