Fix window to not open until iframe is loaded and reverse the conditinal check of origins
Release 2.2.12-beta