diff options
Diffstat (limited to 'webapp/utils/utils.jsx')
-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) { |