Run less code when window.postMessage is missing or we're not in a frame.