UNPKG

@openpass/openpass-js-sdk

Version:
7 lines 291 B
export function isBrowser() { return typeof window !== "undefined" && typeof document !== "undefined"; } export const isPostMessageSupported = () => { return isBrowser() && typeof window.postMessage !== undefined && window.postMessage !== null; }; //# sourceMappingURL=browser.js.map