Skip to content

Commit

Permalink
Change isMobile util function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailash0311 committed Dec 16, 2019
1 parent 910b28d commit eec16a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/client/lib/isMobile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const isMobile = () => {
if (/Mobi/.test(navigator.userAgent)) {
if (window.matchMedia('(max-width: 500px)').matches) {
return true;
}
return false;
Expand Down

0 comments on commit eec16a2

Please sign in to comment.