Permalink
Browse files

iPhones are also mobile devices :)

  • Loading branch information...
marcuswestin committed Jul 17, 2011
1 parent a187726 commit 591dff688309e16fe8fea40e12bc8c153c85eb62
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.js
View
@@ -98,7 +98,7 @@ function _handleMainModuleRequest(reqPath, req, res) {
var response = ['__require__ = {}']
var userAgent = req.headers['user-agent'],
- isMobile = userAgent.match('iPad') || userAgent.match('iPod'),
+ isMobile = userAgent.match('iPad') || userAgent.match('iPod') || userAgent.match('iPhone'),
isSafari = !isMobile && userAgent.match('Safari') && !userAgent.match('Chrome')
if (isMobile) {

0 comments on commit 591dff6

Please sign in to comment.