if (e.origin === window.location.protocol + "//" + window.location.host) return;
Commented out as main app is required to send out messages too and not just read them. Need to figure out a way of ignoring messages to itself but still allow it to post outwards.
if (e.origin === window.location.protocol + "//" + window.location.host) return;
Commented out as main app is required to send out messages too and not just read them. Need to figure out a way of ignoring messages to itself but still allow it to post outwards.