Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cykod/AlienInvasion
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Feb 7, 2012
2 parents d5adf40 + 498c153 commit 0bf1680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ var Game = new function() {
var container = document.getElementById("container"),
hasTouch = !!('ontouchstart' in window),
w = window.innerWidth, h = window.innerHeight;

if(hasTouch) { mobile = true; }
if(hasTouch) { this.mobile = true; }

if(screen.width >= 1280 || !hasTouch) { return false; }

Expand Down

0 comments on commit 0bf1680

Please sign in to comment.