diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-11-21 16:49:51 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-11-21 16:49:51 +0100 |
| commit | 21420bc2db178fc8814d8edd3955205925199f8c (patch) | |
| tree | cb35d361ae8abfc8ac7db00c65afaac256d9fd48 /animism-align/frontend/app/utils/index.js | |
| parent | 49bf241d0fa275053424db3458a057de7b9d418f (diff) | |
handheld should go up to 760 pixels on a side, or so. ipad is 768, iphone pro is 736. make corner section link text open the nav...
Diffstat (limited to 'animism-align/frontend/app/utils/index.js')
| -rw-r--r-- | animism-align/frontend/app/utils/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/animism-align/frontend/app/utils/index.js b/animism-align/frontend/app/utils/index.js index 4519861..016bb76 100644 --- a/animism-align/frontend/app/utils/index.js +++ b/animism-align/frontend/app/utils/index.js @@ -16,8 +16,8 @@ export const isiPhone = !!((navigator.userAgent.match(/iPhone/i)) || (navigator. export const isiPad = !!(navigator.userAgent.match(/iPad/i)) export const isAndroid = !!(navigator.userAgent.match(/Android/i)) export const isMobile = isiPhone || isiPad || isAndroid -export const isHandheld = isiPhone || (isAndroid && window.innerWidth <= 640) -export const isTablet = isMobile && window.innerWidth > 640 +export const isHandheld = isiPhone || (isAndroid && window.innerWidth <= 760) +export const isTablet = isMobile && window.innerWidth > 760 export const isDesktop = !isMobile const htmlClassList = document.body.parentNode.classList |
