Skip to content

Commit

Permalink
fix: show blocking prompt in landscape mode
Browse files Browse the repository at this point in the history
  • Loading branch information
amar-1995 authored Mar 8, 2024
1 parent 2d3ccc4 commit 86ea8a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const MwebLandscapePrompt = () => {
// Angle check needed to diff bw mobile and desktop
setShowMwebLandscapePrompt(
match({ angle, isLandscapeHLSStream, isLandscape, type })
.with({ isLandscapeHLSStream }, () => false)
.with({ isLandscapeHLSStream: true }, () => false)
.with({ angle: P.when(angle => angle && angle >= 90) }, ({ type }) => type.includes('landscape'))
.otherwise(() => isLandscape),
);
Expand Down

0 comments on commit 86ea8a1

Please sign in to comment.