MCPcopy
hub / github.com/basecamp/trix / getOrigin

Function getOrigin

src/test/unit/html_parser_test.js:393–396  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391}
392
393const getOrigin = () => {
394 const { protocol, hostname, port } = window.location
395 return `${protocol}//${hostname}${port ? `:${port}` : ""}`
396}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…