Skip to content

Commit

Permalink
Fix for mobile billion site
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorlc70 committed Dec 6, 2015
1 parent 83064b1 commit 1e80e01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/htmlcompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

debug("url: ", req.url);

var isMobile = !!req.headers['user-agent'].match(/Mobile/);
//var isMobile = !!req.headers['user-agent'].match(/Mobile/);

if ((!parsed.pathname || parsed.pathname === '/') && !isMobile) {
if (!parsed.pathname || parsed.pathname === '/') {

//console.log('!!!!!!!! setHeader location to index.html');
res.statusCode = 301;
Expand Down

0 comments on commit 1e80e01

Please sign in to comment.