never mind screen.orientation

This commit is contained in:
Linda 2018-10-02 15:42:29 -04:00
parent ef1b7d8f9f
commit f55dd02665

View file

@ -124,8 +124,7 @@ class Preview extends React.Component {
*/
const isMobileDevice = screen.height <= frameless.mobile || screen.width <= frameless.mobile;
if (this.props.playerMode && isMobileDevice) {
const isLandscape = (screen.orientation.type && screen.orientation.type === 'landscape-primary') ||
screen.height < screen.width;
const isLandscape = screen.height < screen.width;
if (isLandscape) {
this.props.setFullScreen(true);
} else {