about summary refs log tree commit diff
path: root/app/javascript/mastodon/is_mobile.js
diff options
context:
space:
mode:
authorkibigo! <marrus-sh@users.noreply.github.com>2017-06-24 17:07:25 -0700
committerkibigo! <marrus-sh@users.noreply.github.com>2017-06-24 18:30:30 -0700
commitddba5d3b8c065cdf1ef206b13fea02444ffdf1f7 (patch)
tree7321fc9c0700dcc58701b8122d756409044c0824 /app/javascript/mastodon/is_mobile.js
parentceb545c08002ed34f8837ddd2fd032178f59c6ed (diff)
Use Redux store to keep track of layout
Diffstat (limited to 'app/javascript/mastodon/is_mobile.js')
-rw-r--r--app/javascript/mastodon/is_mobile.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/is_mobile.js b/app/javascript/mastodon/is_mobile.js
index 8689dbe23..014a9a8d5 100644
--- a/app/javascript/mastodon/is_mobile.js
+++ b/app/javascript/mastodon/is_mobile.js
@@ -2,9 +2,9 @@ const LAYOUT_BREAKPOINT = 1024;
 
 export function isMobile(width, columns) {
   switch (columns) {
-  case "multiple":
+  case 'multiple':
     return false;
-  case "single":
+  case 'single':
     return true;
   default:
     return width <= LAYOUT_BREAKPOINT;