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)