summaryrefslogtreecommitdiffstats
path: root/webapp/utils
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-05-02 08:08:05 -0400
committerChristopher Speller <crspeller@gmail.com>2016-05-02 08:08:05 -0400
commit29b91301a65e2825afc415a60e1eab73d0de6d86 (patch)
tree6bea006a79056f3a137df90b68b32babea9ec1a4 /webapp/utils
parentc63e027aece1270c8e1378ee27b015304d25f89d (diff)
downloadchat-29b91301a65e2825afc415a60e1eab73d0de6d86.tar.gz
chat-29b91301a65e2825afc415a60e1eab73d0de6d86.tar.bz2
chat-29b91301a65e2825afc415a60e1eab73d0de6d86.zip
Closing 'RHS' on mobile when jump link is clicked (#2825)
Diffstat (limited to 'webapp/utils')
-rw-r--r--webapp/utils/utils.jsx2
1 files changed, 1 insertions, 1 deletions
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) {