Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

version bump, making ipad use web templates

  • Loading branch information...
commit 2c3c8ddc3ecf6e5c2cdf63fe4e016eeefb11d3df 1 parent 81b17f7
@jesseditson authored
View
3  lib/helpers/middleware/render.js
@@ -8,6 +8,9 @@ var _ = require('underscore');
var Render = module.exports = function(req,res,next){
var resRender = res.render,
dir = req.isMobile ? 'mobile' : 'web';
+ if(req.isMobile == 'iPad'){
+ dir = 'web'
+ }
res.rawRender = resRender;
res.render = function(){
// TODO: load this instead of hardcoding it.
View
6 lib/helpers/middleware/useragent.js
@@ -16,7 +16,11 @@ var UserAgent = module.exports = function(req,res,next){
var ua = useragent.parse(req.headers['user-agent']).toString(),
mobilePattern = /(ios|mobile|wii|webos|tablet|kindle|portable|palm|symbian|blackberry)/i
if(ua.match(mobilePattern)){
- req.isMobile = true;
+ if(ua.match(/ipad/i)){
+ req.isMobile = 'iPad';
+ } else {
+ req.isMobile = true;
+ }
} else {
req.isMobile = false;
}
View
2  package.json
@@ -2,7 +2,7 @@
"author": "Jesse Ditson <jesse.ditson@gmail.com>",
"name": "urza",
"description": "Urza is a node.js framework built for rapid development.",
- "version": "0.0.29",
+ "version": "0.0.30",
"repository": {
"type": "git",
"url": "git://github.com/jesseditson/Urza.git"
Please sign in to comment.
Something went wrong with that request. Please try again.