detectmobilebrowsers
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "detectmobilebrowsers", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Mobile browser detection based on user-agent", | ||
@@ -5,0 +5,0 @@ "author": "Bryant Williams <b.n.williams@gmail.com>", |
@@ -13,3 +13,3 @@ # Mobile Redirection for Node.js and Express | ||
app.use mobile.redirect 'http://m.domain.com' | ||
app.user mobile.is_mobile() | ||
app.use mobile.is_mobile() | ||
app.get '/', (req, res) -> | ||
@@ -16,0 +16,0 @@ res.json {is_mobile: req.is_mobile} |
9388