mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-09-24 04:24:09 -03:00
9 lines
242 B
TypeScript
9 lines
242 B
TypeScript
export function getLmBasePath(): string {
|
|
const { pathname } = window.location;
|
|
return pathname.endsWith('/') ? pathname.slice(0, -1) : pathname;
|
|
}
|
|
|
|
export function lmApiUrl(path: string): string {
|
|
return `${getLmBasePath()}${path}`;
|
|
}
|