mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-05-14 00:41:10 +03:00
12 lines
258 B
TypeScript
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`;
|
|
}
|