mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-07-21 14:53:26 +03:00
18 lines
367 B
TypeScript
18 lines
367 B
TypeScript
export function getClashApiUrl(): string {
|
|
const { hostname } = window.location;
|
|
|
|
return `http://${hostname}:9090`;
|
|
}
|
|
|
|
export function getClashWsUrl(): string {
|
|
const { hostname } = window.location;
|
|
|
|
return `ws://${hostname}:9090`;
|
|
}
|
|
|
|
export function getClashUIUrl(): string {
|
|
const { hostname } = window.location;
|
|
|
|
return `http://${hostname}:9090/ui`;
|
|
}
|