It may be useful to pass additional information to the receiver via the MessageEvent, so a developer can know that delegation failed, or was denied or something similar.
window.addEventListener("message", e => {
if (e.delegate == false) {
// do something useful, rather than hope the API i would have called has a rejection handler (or w/e)
}
});
It may be useful to pass additional information to the receiver via the MessageEvent, so a developer can know that delegation failed, or was denied or something similar.