Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function needsBridgeForBrowser() : boolean {
if (getUserAgent(window).match(/MSIE|trident|edge\/12|edge\/13/i)) {
return true;
}
return false;
}
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;
}
export function needsGlobalMessagingForBrowser() : boolean {
if (getUserAgent(window).match(/MSIE|rv:11|trident|edge\/12|edge\/13/i)) {
return true;
}
return false;
}