From aa8c791afb266314cb6962c577ee17eb85f58f34 Mon Sep 17 00:00:00 2001 From: Adam Dean Date: Tue, 18 Nov 2025 22:18:27 -0700 Subject: [PATCH] Issue w/ NFTCDN not providing a CORS header for images and that causing some breakage in the generated QR code library. Removing the NFT image from the QR code for the time being to ensure that the system is working as intended. --- resources/js/Pages/Event/Partials/TicketQrCode.vue | 8 ++++---- resources/js/Pages/Event/Show.vue | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/js/Pages/Event/Partials/TicketQrCode.vue b/resources/js/Pages/Event/Partials/TicketQrCode.vue index c9281a1..0725c1c 100644 --- a/resources/js/Pages/Event/Partials/TicketQrCode.vue +++ b/resources/js/Pages/Event/Partials/TicketQrCode.vue @@ -22,7 +22,7 @@ const qr_options = { qrOptions: { typeNumber: 0, mode: 'Byte', - errorCorrectionlevel: 'Q' + errorCorrectionlevel: 'L' }, imageOptions: { hideBackgroundDots: true, @@ -62,14 +62,14 @@ onMounted(async () => { }); watch(() => props, async (newValue) => { - const timestamp = new Date().getTime(); - const img_path = `${newValue.image}?timestamp=${timestamp}`; + // const timestamp = new Date().getTime(); + // const img_path = `${newValue.image}?timestamp=${timestamp}`; const data_uri = newValue.data; qrCode.update({ ...qr_options, data: data_uri, - image: img_path + // image: img_path }); qrCode.append(qr_code.value); diff --git a/resources/js/Pages/Event/Show.vue b/resources/js/Pages/Event/Show.vue index 713602b..5ea436f 100644 --- a/resources/js/Pages/Event/Show.vue +++ b/resources/js/Pages/Event/Show.vue @@ -293,11 +293,11 @@ const generate_ticket = async (asset) => { if (ticket_validation) { modal.value.showTicket = true; - qr_image_value = asset.fingerprint ? route('image.show', {asset_key: asset.fingerprint}) : ''; + // qr_image_value = asset.fingerprint ? route('image.show', {asset_key: asset.fingerprint}) : ''; + qr_image_value = ''; qr_code_value = ticket_validation.data.qr_value; } - cardano.value.connected.busy = false; }