MCPcopy Index your code
hub / github.com/pythongosssss/ComfyUI-Custom-Scripts / getUrl

Function getUrl

web/js/common/utils.js:15–21  ·  view source on GitHub ↗
(path, baseUrl)

Source from the content-addressed store, hash-verified

13}
14
15export function getUrl(path, baseUrl) {
16 if (baseUrl) {
17 return new URL(path, baseUrl).toString();
18 } else {
19 return new URL("../" + path, import.meta.url).toString();
20 }
21}
22
23export async function loadImage(url) {
24 return new Promise((res, rej) => {

Callers 2

lightbox.jsFile · 0.90
addStylesheetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected