UIX update for alpha release

This commit is contained in:
Jesse Malotaux 2025-04-11 19:31:43 +02:00
parent 510e22d82d
commit cf0ef8bd92
5 changed files with 9 additions and 13 deletions

View file

@ -2,9 +2,9 @@ import { useDeviceStore } from '@/stores/device'
import CryptoJS from 'crypto-js'
export const appUrl = () => {
return window.location.port !== import.meta.env.VITE_MCRM__PORT
? `http://${window.location.hostname}:${import.meta.env.VITE_MCRM__PORT}`
: ''
const port = window.location.port == 5173 ? import.meta.env.VITE_MCRM__PORT : window.location.port
return `http://${window.location.hostname}:${port}`
}
export const isLocal = () => {