3 function isPhone(req) {
4 var agent = req.getParsedUserAgent();
5 var device = agent.device;
7 if (device && device.family === 'iPad') return false;
9 var userAgentString = req.headers['user-agent'];
10 return userAgentString && userAgentString.toLowerCase().indexOf('mobile') >= 0;
13 module.exports = isPhone;