mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
never mind screen.orientation
This commit is contained in:
parent
ef1b7d8f9f
commit
f55dd02665
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue