UNPKG

@sparkpost/matchbox

Version:
19 lines (18 loc) 610 B
/** * Checks if operating in a browser-based environment */ export declare function isBrowser(): boolean; declare type GetWindowReturnType = (Window & typeof globalThis) | { [k: string]: any; }; /** * Checks if window is available to support SSG/SSR builds */ export declare function getWindow(): GetWindowReturnType; /** * Returns true if window is an iframe * window.top is not accessible from an iframe * @see https://stackoverflow.com/questions/326069/how-to-identify-if-a-webpage-is-being-loaded-inside-an-iframe-or-directly-into-t */ export declare function isInIframe(): boolean; export {};