MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / getOrigin

Function getOrigin

packages/vscode-extension/extension.js:374–377  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

372}
373
374function getOrigin(value) {
375 const url = new URL(value);
376 return `${url.protocol}//${url.host}`;
377}
378
379function sameOrigin(left, right) {
380 try {

Callers 2

getWebviewHtmlFunction · 0.85
sameOriginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected