Home / Function/ isInIframe() — ui Function Reference

isInIframe() — ui Function Reference

Architecture documentation for the isInIframe() function in use-iframe-sync.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  02317304_c79d_4665_09f7_3c5ca7424acf["isInIframe()"]
  6df3b824_805c_9704_1ce4_b3b332c22d53["use-iframe-sync.tsx"]
  02317304_c79d_4665_09f7_3c5ca7424acf -->|defined in| 6df3b824_805c_9704_1ce4_b3b332c22d53
  ab28371f_04be_dacf_4bd0_4970453ca87f["useIframeMessageListener()"]
  ab28371f_04be_dacf_4bd0_4970453ca87f -->|calls| 02317304_c79d_4665_09f7_3c5ca7424acf
  style 02317304_c79d_4665_09f7_3c5ca7424acf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/app/(create)/hooks/use-iframe-sync.tsx lines 12–17

export const isInIframe = () => {
  if (typeof window === "undefined") {
    return false
  }
  return window.self !== window.top
}

Subdomains

Frequently Asked Questions

What does isInIframe() do?
isInIframe() is a function in the ui codebase, defined in apps/v4/app/(create)/hooks/use-iframe-sync.tsx.
Where is isInIframe() defined?
isInIframe() is defined in apps/v4/app/(create)/hooks/use-iframe-sync.tsx at line 12.
What calls isInIframe()?
isInIframe() is called by 1 function(s): useIframeMessageListener.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free