diff --git a/app/utils/client/lib/isMobile.js b/app/utils/client/lib/isMobile.js index 8dc0fc549552..94bb8cb74b00 100644 --- a/app/utils/client/lib/isMobile.js +++ b/app/utils/client/lib/isMobile.js @@ -1,5 +1,5 @@ export const isMobile = () => { - if (/Mobi/.test(navigator.userAgent)) { + if (window.matchMedia('(max-width: 500px)').matches) { return true; } return false;