forcejs icon indicating copy to clipboard operation
forcejs copied to clipboard

oauthcallback.html not working on Edge

Open zonski opened this issue 6 years ago • 0 comments

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.

zonski avatar Jan 29 '19 21:01 zonski