Skip to content

Commit

Permalink
Improve anti-cache measures when minting sets
Browse files Browse the repository at this point in the history
  • Loading branch information
wraitii committed Feb 5, 2024
1 parent cbd9285 commit cdbbefd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/builder/UserSets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class UserSetStore extends GeneralizedUserItem {
);
if (!image) {
// https://www.hacksoft.io/blog/handle-images-cors-error-in-chrome#solution
const bookletImage = fetch(genesisStore.coverItemRoute(booklet) + '?no-cache-please');
const bookletImage = fetch(genesisStore.coverItemRoute(booklet) + '?no-cache-please' + Date.now());
const imageBlob = (await (await bookletImage).blob());
const image_base64 = await new Promise(yes => {
const reader = new FileReader() ;
Expand Down
2 changes: 1 addition & 1 deletion src/components/collections/MassMint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ const mintBoxes = async () => {
}
const getOfficialSetPreview = async (booklet: string) => {
const bookletImage = fetch(genesisStore.coverItemRoute(booklet) + '?no-cache-please');
const bookletImage = fetch(genesisStore.coverItemRoute(booklet) + '?no-cache-please' + Date.now());
const imageBlob = (await (await bookletImage).blob());
const image_base64 = await new Promise(yes => {
const reader = new FileReader() ;
Expand Down

0 comments on commit cdbbefd

Please sign in to comment.