Files
podkop/fe-app-podkop/src/helpers/getClashApiUrl.ts
2025-10-06 03:43:55 +03:00

12 lines
258 B
TypeScript

export function getClashApiUrl(): string {
const { protocol, hostname } = window.location;
return `${protocol}//${hostname}:9090`;
}
export function getClashWsUrl(): string {
const { hostname } = window.location;
return `ws://${hostname}:9090`;
}