Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
374
function
getOrigin(value) {
375
const
url =
new
URL(value);
376
return
`${url.protocol}
//${url.host}`;
377
}
378
379
function
sameOrigin(left, right) {
380
try {
Callers
2
getWebviewHtml
Function · 0.85
sameOrigin
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected