fix(local): hostman access from user

This commit is contained in:
zain94rif
2026-04-06 14:02:02 +07:00
parent 75db6eb209
commit 13fcc126a2

View File

@@ -37,8 +37,7 @@ import {
} from '@ant-design/icons'; } from '@ant-design/icons';
const { Text } = Typography; const { Text } = Typography;
const url = new URL(import.meta.env.VITE_WHATSAPP_URL); const host = window.location.hostname;
const host = url.hostname;
const isLocal = const isLocal =
host === '127.0.0.1' || host === '127.0.0.1' ||