mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 00:34:00 -06:00
Warn when ipad save fails
This commit is contained in:
@@ -193,8 +193,18 @@ function loadSheet(name) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function storeRoster(roster) {
|
function storeRoster(roster) {
|
||||||
if (storage)
|
if (storage) {
|
||||||
storage.setItem("roster", JSON.stringify(roster));
|
try {
|
||||||
|
storage.setItem("roster", JSON.stringify(roster));
|
||||||
|
return true;
|
||||||
|
} catch (err) {
|
||||||
|
if (err.toString().indexOf("QUOTA_EXCEEDED_ERR") != -1) {
|
||||||
|
alert("The limited storage available on this device has been filled. This game can lo longer be saved.")
|
||||||
|
storage = null;;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function addToRoster(newguy) {
|
function addToRoster(newguy) {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
// TODO: Hide cheaters
|
// TODO: Hide cheaters
|
||||||
|
|
||||||
// After launch
|
// After launch
|
||||||
|
// TODO: Stop using HTML to save the game
|
||||||
// TODO: Get fully operational in Opera
|
// TODO: Get fully operational in Opera
|
||||||
// TODO: Online leader board
|
// TODO: Online leader board
|
||||||
// TODO: Server side saves
|
// TODO: Server side saves
|
||||||
|
|||||||
Reference in New Issue
Block a user