/** * Returns true if the current frame is within an iframe. * * ```gjs * import { inIframe } from 'ember-primitives/iframe'; * * * ``` */ export const inIframe = () => window.self !== window.top; /** * Returns true if the current frame is not within an iframe. * * ```gjs * import { notInIframe } from 'ember-primitives/iframe'; * * * ``` */ export const notInIframe = () => !inIframe();