From 29b91301a65e2825afc415a60e1eab73d0de6d86 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Mon, 2 May 2016 08:08:05 -0400
Subject: Closing 'RHS' on mobile when jump link is clicked (#2825)

---
 webapp/utils/utils.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/utils/utils.jsx')

diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index 8255b10f3..8917c97e4 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -937,7 +937,7 @@ export function isValidUsername(name) {
 }
 
 export function isMobile() {
-    return screen.width <= 768;
+    return window.innerWidth <= 768;
 }
 
 export function isComment(post) {
-- 
cgit v1.2.3-1-g7c22

