I am using the Angular + Auth0 seed project and everything works as expected in Chrome, but in IE 11, I get the following error when trying to login with Google, Microsoft, etc. credentials:
Unable to get property 'frames' of undefined or null reference
It specifically calls out the following and fails on the line for var frames = window.opener.frames with the error message: Unable to get property 'frames' of undefined or null reference
function findRelay() {
var loc = window.location;
var frames = window.opener.frames;
for (var i = frames.length - 1; i >= 0; i--) {
try {
if (frames[i].location.protocol === window.location.protocol &&
frames[i].location.host === window.location.host &&
frames[i].name === RELAY_FRAME_NAME)
{
return frames[i];
}
} catch(e) { }
}
return;
}
Any clues?