Changed wayf client to use postmessage.