MCPcopy
hub / github.com/pinokiocomputer/pinokio / normalizeInspectorUrl

Function normalizeInspectorUrl

full.js:892–901  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

890}
891
892const normalizeInspectorUrl = (value) => {
893 if (!value) {
894 return null
895 }
896 try {
897 return new URL(value).href
898 } catch (_) {
899 return value
900 }
901}
902
903const urlsRoughlyMatch = (expected, candidate) => {
904 if (!expected) {

Callers 6

flattenFrameTreeFunction · 0.85
findDescendantByUrlFunction · 0.85
selectTargetFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected