MCPcopy Index your code
hub / github.com/pyscript/pyscript / relative_url

Function relative_url

core/src/config.js:54–54  ·  view source on GitHub ↗
(url, base = location.href)

Source from the content-addressed store, hash-verified

52const conflictError = (reason) => new Error(`(${CONFLICTING_CODE}): ${reason}`);
53
54const relative_url = (url, base = location.href) => new URL(url, base).href;
55
56const syntaxError = (type, url, { message }) => {
57 let str = `(${BAD_CONFIG}): Invalid ${type}`;

Callers 4

offline_interpreterFunction · 0.90
executeFunction · 0.90
py-terminal.jsFile · 0.90
config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected