MCPcopy
hub / github.com/JakeChampion/fetch / fixUrl

Function fixUrl

fetch.js:577–583  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

575 }
576
577 function fixUrl(url) {
578 try {
579 return url === '' && g.location.href ? g.location.href : url
580 } catch (e) {
581 return url
582 }
583 }
584
585 xhr.open(request.method, fixUrl(request.url), true)
586

Callers 1

fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…