MCPcopy
hub / github.com/alibaba/lowcode-engine / inSameDomain

Function inSameDomain

packages/renderer-core/src/utils/common.ts:67–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 * @returns boolean
66 */
67export function inSameDomain() {
68 try {
69 return window.parent !== window && window.parent.location.host === window.location.host;
70 } catch (e) {
71 return false;
72 }
73}
74
75/**
76 * get css styled name from schema`s fileName

Callers 3

common.test.tsFile · 0.90
parseExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…