forcejs
forcejs copied to clipboard
oauthcallback.html not working on Edge
The default oauthcallback.html does not seem to work on Microsoft Edge. This code:
var event = new CustomEvent("oauthCallback", {"detail": window.location.href});
window.opener.document.dispatchEvent(event);
window.close();
Fails on the dispatchEvent
line with error:
SCRIPT87: SCRIPT87: Invalid argument.
I've as yet not been able to find a way to make Edge call dispatchEvent with a custom event on a parent window.