Skip to content

Commit

Permalink
fix orientation type #97
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahamjuliot committed Jan 10, 2021
1 parent d10f000 commit 73eac48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tests/screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const {
pixelDepth,
} = screen

const { orientation: orientationType } = screen.type || {}
const { type: orientationType } = screen.orientation

const vViewport = 'visualViewport' in window ? visualViewport : {}
const { width: viewportWidth, height: viewportHeight } = vViewport || {}
Expand Down Expand Up @@ -245,7 +245,7 @@ patch(el, html`
<div>colorDepth: ${''+colorDepth}</div>
<div>pixelDepth: ${''+pixelDepth}</div>
<div>devicePixelRatio: ${''+devicePixelRatio}</div>
<div>orientation: ${''+orientationType}</div>
<div>orientation type: ${''+orientationType}</div>
<div>@media orientation: ${''+orientation}</div>
<div>@media display-mode: ${''+displayMode}</div>
Expand Down

0 comments on commit 73eac48

Please sign in to comment.