Skip to content

Commit

Permalink
Merge pull request #1 from mtp3manyland/fix-uppercase-snaps-error
Browse files Browse the repository at this point in the history
Fix uppercase snapshot images causing crashes
  • Loading branch information
Eselvire authored Mar 25, 2024
2 parents 2998a91 + aa29d41 commit 89f5529
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@
const shortCode = allSnaps[i];
status.textContent = "Downloading snaps... (" + i + ")";
try {
await downloadAndStoreSnap(shortCode);
await downloadAndStoreSnap(shortCode.toLowerCase());
}
catch (e) {
console.warn(`Error saving snap ${shortCode}! Skipping`);
Expand Down
2 changes: 1 addition & 1 deletion exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ import { ZodInfer } from "./types";
const shortCode = allSnaps[i]
status.textContent = "Downloading snaps... (" + i + ")"
try {
await downloadAndStoreSnap(shortCode)
await downloadAndStoreSnap(shortCode.toLowerCase());
} catch(e) {
console.warn(`Error saving snap ${shortCode}! Skipping`);
}
Expand Down

0 comments on commit 89f5529

Please sign in to comment.