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) {
|
||||
if (storage)
|
||||
if (storage) {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user