MCPcopy
hub / github.com/streamlit/streamlit / isInChildFrame

Function isInChildFrame

frontend/lib/src/util/utils.ts:219–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217 * Returns true if the parent parameter indicates that we're in an iframe.
218 */
219export function isInChildFrame(): boolean {
220 return window.parent !== window
221}
222
223/**
224 * Returns the URL of the app without query parameters, handling both embedded and non-embedded cases.

Callers 4

componentDidMountMethod · 0.90
AppClass · 0.90
getUrlFunction · 0.85
getIFrameEnclosingAppFunction · 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…