diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-05-02 08:08:05 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-05-02 08:08:05 -0400 |
commit | 29b91301a65e2825afc415a60e1eab73d0de6d86 (patch) | |
tree | 6bea006a79056f3a137df90b68b32babea9ec1a4 /webapp/utils | |
parent | c63e027aece1270c8e1378ee27b015304d25f89d (diff) | |
download | chat-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.jsx | 2 |
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) { |