Skip to content

Commit

Permalink
Change localStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
gamalielhere committed Feb 3, 2016
1 parent 29b2263 commit e72802c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
var food;
var snake;
var score;
var highscore = localStorage.topScore || 0;
var highscore = 0 || localStorage.topScore;
var speed;
var headColor = "green",
colorFood = "yellow",
Expand Down

0 comments on commit e72802c

Please sign in to comment.