MCPcopy Create free account
hub / github.com/DLTech21/ofd.js / createValidAbsoluteUrl

Function createValidAbsoluteUrl

src/utils/jbig2/util.js:391–404  ·  view source on GitHub ↗

* Attempts to create a valid absolute URL. * * @param {URL|string} url - An absolute, or relative, URL. * @param {URL|string} baseUrl - An absolute URL. * @returns Either a valid {URL}, or `null` otherwise.

(url, baseUrl)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

_isValidProtocolFunction · 0.85

Tested by

no test coverage detected