Please sign in to comment.
Use window.innerWidth to detect mobile devices.
Although window.orientation works well to detect mobile devices for now, it is deprecated and might be unreliable. See also: https://developer.mozilla.org/en-US/docs/Web/API/Window/orientation Using the viewport size is also a better approach for hiding/showing additional view elements.
- Loading branch information...