From f55dd02665b0bd8ee727cfcdcd81f1c9ce62febf Mon Sep 17 00:00:00 2001 From: Linda Date: Tue, 2 Oct 2018 15:42:29 -0400 Subject: [PATCH] never mind screen.orientation --- src/views/preview/preview.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/preview/preview.jsx b/src/views/preview/preview.jsx index 441ea005f..b8f1277d5 100644 --- a/src/views/preview/preview.jsx +++ b/src/views/preview/preview.jsx @@ -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 {