Generally, however, the set codes used by Scryfall are accurate.
-
+
Position/scale your Set Symbol (X, Y, Scale)
@@ -219,6 +223,10 @@
+
+
Clears the Set Symbol, making it blank
+
+
@@ -276,7 +284,7 @@
-
+
Position/scale your watermark (X, Y, Scale)
@@ -287,6 +295,10 @@
+
+
Clears the watermark, making it blank
+
+
@@ -314,10 +326,14 @@
-
+
Download/upload lists of saved cards
-
+
+
+
+
Deletes ALL saved cards
+
@@ -353,5 +369,5 @@
-
+
\ No newline at end of file
diff --git a/js/creator.js b/js/creator-1.js
similarity index 94%
rename from js/creator.js
rename to js/creator-1.js
index bdc1811f..9e61f287 100644
--- a/js/creator.js
+++ b/js/creator-1.js
@@ -233,7 +233,6 @@ function loadManaSymbols(manaSymbolPaths, size = [1, 1]) {
manaSymbol.backs = item[2];
for (var i = 0; i < item[2]; i ++) {
loadManaSymbols([manaSymbol.path.replace(manaSymbol.name, 'back' + i + item[1])])
- // console.log(manaSymbol.path.replace(manaSymbol.name, 'back' + i + item[1]))
}
}
manaSymbol.width = size[0];
@@ -1195,12 +1194,6 @@ function saveCard(saveFromFile) {
}
}
}
- if (!cardKeys.includes(cardKey)) {
- cardKeys.push(cardKey);
- cardKeys.sort();
- localStorage.setItem('cardKeys', JSON.stringify(cardKeys));
- loadAvailableCards(cardKeys);
- }
if (saveFromFile) {
cardToSave = saveFromFile.data;
} else {
@@ -1210,59 +1203,73 @@ function saveCard(saveFromFile) {
frame.masks.forEach(mask => delete mask.image);
});
}
- localStorage.setItem(cardKey, JSON.stringify(cardToSave));
+ try {
+ localStorage.setItem(cardKey, JSON.stringify(cardToSave));
+ if (!cardKeys.includes(cardKey)) {
+ cardKeys.push(cardKey);
+ cardKeys.sort();
+ localStorage.setItem('cardKeys', JSON.stringify(cardKeys));
+ loadAvailableCards(cardKeys);
+ }
+ } catch (error) {
+ notify('You have exceeded your 5MB of local storage, and your card has failed to save. If you would like to continue saving cards, please download all saved cards, then delete all saved cards to free up space.
Local storage is most often exceeded by uploading large images directly from your computer. If possible/convenient, using a URL avoids the need to save these large images.