utils: add isMobile
This commit is contained in:
@@ -35,4 +35,10 @@ module.exports = {
|
||||
}
|
||||
return actualLeft - elementScrollLeft;
|
||||
},
|
||||
|
||||
/**
|
||||
* check if user is using mobile or not
|
||||
*/
|
||||
isMobile: /mobile/i.test(window.navigator.userAgent)
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user