Kind of working - one shot characters using cookies

This commit is contained in:
Eric Fredricksen
2010-07-07 12:17:50 -07:00
parent a6a29c78ab
commit 75fe19ddb4
3 changed files with 41 additions and 8 deletions
+2 -2
View File
@@ -6,11 +6,11 @@ $(document).ready(function () {
var roster = $("#roster");
roster.empty();
games = loadRoster();
if (!games) {
if (!storage) {
roster.html("<b>This browser does not support local storage. You may still play fast and loose: the game will last only as long as the page stays open in your browser.");
return;
}
games = loadRoster() || {};
$.each(games, function (key, c) {
var name = c.Traits.Name;