mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-09-25 04:54:08 -03:00
17 lines
445 B
JavaScript
17 lines
445 B
JavaScript
/**
|
|
* Base-path helpers for the manager pages.
|
|
*
|
|
* `window.LM_BASE_PATH` is set by the inline bootstrap in
|
|
* templates/components/base_path_bootstrap.html: it is the reverse-proxy
|
|
* subpath the manager is served under (e.g. "/comfyui"), or "" for normal
|
|
* and standalone deployments.
|
|
*/
|
|
|
|
export function getBasePath() {
|
|
return window.LM_BASE_PATH || '';
|
|
}
|
|
|
|
export function withBasePath(path) {
|
|
return `${getBasePath()}${path}`;
|
|
}
|