visualViewport is supported in Chrome only

pull/10616/head
Luke Morris 2017-12-11 14:46:28 -08:00
parent 488d581d9e
commit 62213ee9cc
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class UserNavBlock extends Component {
const isSuperAdmin = role === SUPERADMIN_ROLE
const isSmallViewport = window.visualViewport.height < 850
const isSmallViewport = window.innerHeight < 850
return (
<div className="sidebar--item">