diff options
Diffstat (limited to 'app/javascript/mastodon/is_mobile.js')
-rw-r--r-- | app/javascript/mastodon/is_mobile.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/app/javascript/mastodon/is_mobile.js b/app/javascript/mastodon/is_mobile.js index 80e8e0a8a..f96df1ebb 100644 --- a/app/javascript/mastodon/is_mobile.js +++ b/app/javascript/mastodon/is_mobile.js @@ -2,15 +2,8 @@ import detectPassiveEvents from 'detect-passive-events'; const LAYOUT_BREAKPOINT = 630; -export function isMobile(width, columns) { - switch (columns) { - case 'multiple': - return false; - case 'single': - return true; - default: - return width <= LAYOUT_BREAKPOINT; - } +export function isMobile(width) { + return width <= LAYOUT_BREAKPOINT; }; const iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; |