From 1aed7fb673031b74ee9e9c28d10d0dd1c1a299dd Mon Sep 17 00:00:00 2001 From: Caleb Fultz Date: Wed, 21 Aug 2024 12:07:20 -0400 Subject: [PATCH] code correction --- app.js | 2 +- index.html | 2 +- styles.css | 2 +- sw.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index 63e9d4c..e320711 100644 --- a/app.js +++ b/app.js @@ -101,7 +101,7 @@ async function fetchCardDetails(cardName, setCode) { const response = await fetch(`https://api.scryfall.com/cards/named?exact=${encodeURIComponent(cardName)}&set=${encodeURIComponent(setCode)}`); const data = await response.json(); - console.log('Fetched Data:', data); // Debugging: Log the fetched data + console.log('Fetched Data from Scryfall:', data); // Debugging: Log the fetched data // Return the relevant card details return { diff --git a/index.html b/index.html index b2c3e5c..ff0e330 100644 --- a/index.html +++ b/index.html @@ -64,7 +64,7 @@ diff --git a/styles.css b/styles.css index aa0d8aa..b2f5033 100644 --- a/styles.css +++ b/styles.css @@ -152,7 +152,7 @@ body { color: var(--text-color); margin: 0; padding: 20px; -} +} .container { max-width: 600px; diff --git a/sw.js b/sw.js index 403b958..27567c9 100644 --- a/sw.js +++ b/sw.js @@ -12,7 +12,7 @@ self.addEventListener("message", (event) => { self.skipWaiting(); } }); - + self.addEventListener('install', async (event) => { event.waitUntil( caches.open(CACHE)