Make sure component doesn't error when inside hidden iframe