Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuperMap/iClient-JavaScript
/ isSameDomain
Function
isSameDomain
src/common/commontypes/Util.js:656–658 ·
view source on GitHub ↗
(url, otherUrl)
Source
from the content-addressed store, hash-verified
654
},
655
656
isSameDomain(url, otherUrl) {
657
return
new
URI(url).normalize().origin() ===
new
URI(otherUrl).normalize().origin();
658
},
659
660
/**
661
* @memberOf CommonUtil
Callers
nothing calls this directly
Calls
1
normalize
Method · 0.45
Tested by
no test coverage detected