How to use the cross-domain-utils/src.getUserAgent function in cross-domain-utils

To help you get started, we’ve selected a few cross-domain-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github krakenjs / post-robot / src / bridge / common.js View on Github external
export function needsBridgeForBrowser() : boolean {

    if (getUserAgent(window).match(/MSIE|trident|edge\/12|edge\/13/i)) {
        return true;
    }

    return false;
}
github krakenjs / post-robot / dist / module / lib / util.js View on Github external
export function needsGlobalMessagingForBrowser() {

    if (getUserAgent(window).match(/MSIE|trident|edge\/12|edge\/13/i)) {
        return true;
    }

    if (!CONFIG.ALLOW_POSTMESSAGE_POPUP) {
        return true;
    }

    return false;
}
github krakenjs / post-robot / src / lib / compat.js View on Github external
export function needsGlobalMessagingForBrowser() : boolean {

    if (getUserAgent(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i)) {
        return true;
    }

    return false;
}