Skip to content

Commit

Permalink
fi visualViewport error #97
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahamjuliot committed Jan 4, 2021
1 parent e996218 commit 0fffda1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion creep.js
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ const imports = {
)).toFixed(0)
const template = `
<div class="visitor-info">
<div class="ellipsis"><span class="aside-note">script modified 2020-12-5</span></div>
<div class="ellipsis"><span class="aside-note">script modified 2020-1-3</span></div>
<div class="flex-grid">
<div class="col-six">
<strong>Browser</strong>
Expand Down
4 changes: 2 additions & 2 deletions docs/tests/screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ const {
orientation: { type: orientationType }
} = screen


const { width: viewportWidth, height: viewportHeight } = visualViewport
const viewport = 'visualViewport' in window ? visualViewport : {}
const { width: viewportWidth, height: viewportHeight } = viewport || {}
const { width: mediaWidth, height: mediaHeight } = getScreenMedia()
const { width: matchMediaWidth, height: matchMediaHeight } = getScreenMatchMedia()
const {
Expand Down

0 comments on commit 0fffda1

Please sign in to comment.