From 13fcc126a2b8de0e0154b783d6b6ed239b46f226 Mon Sep 17 00:00:00 2001 From: zain94rif Date: Mon, 6 Apr 2026 14:02:02 +0700 Subject: [PATCH] fix(local): hostman access from user --- src/layout/LayoutMenu.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/layout/LayoutMenu.jsx b/src/layout/LayoutMenu.jsx index 895bcc7..b523c66 100644 --- a/src/layout/LayoutMenu.jsx +++ b/src/layout/LayoutMenu.jsx @@ -37,8 +37,7 @@ import { } from '@ant-design/icons'; const { Text } = Typography; -const url = new URL(import.meta.env.VITE_WHATSAPP_URL); -const host = url.hostname; +const host = window.location.hostname; const isLocal = host === '127.0.0.1' ||