mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 08:44:00 -06:00
Way too much effort improving no localStorage version
This commit is contained in:
@@ -6,12 +6,18 @@ $(document).ready(function () {
|
||||
var roster = $("#roster");
|
||||
roster.empty();
|
||||
|
||||
if (!storage) {
|
||||
if (!window.localStorage) {
|
||||
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() || {};
|
||||
|
||||
games = loadRoster();
|
||||
$.each(games, function (key, c) {
|
||||
if (!c.Traits) {
|
||||
delete games[key];
|
||||
return;
|
||||
}
|
||||
|
||||
var name = c.Traits.Name;
|
||||
|
||||
var br = brag(c);
|
||||
|
||||
Reference in New Issue
Block a user