code correction

This commit is contained in:
Caleb Fultz 2024-08-21 12:07:20 -04:00
parent 326c3fce93
commit 1aed7fb673
4 changed files with 4 additions and 4 deletions

2
app.js
View File

@ -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 {

View File

@ -64,7 +64,7 @@
<footer>
<p>
<a href="https://github.com/cfultz/mtgcsv" target="_blank">View on GitHub</a> |
<a href="https://github.com/cfultz/mtgcsv" target="_blank">View on GitHub.com</a> |
This app is not affiliated with Wizards of the Coast or Hasbro. All rights and trademarks are owned by their respective owners.
</p>
</footer>

View File

@ -152,7 +152,7 @@ body {
color: var(--text-color);
margin: 0;
padding: 20px;
}
}
.container {
max-width: 600px;

2
sw.js
View File

@ -12,7 +12,7 @@ self.addEventListener("message", (event) => {
self.skipWaiting();
}
});
self.addEventListener('install', async (event) => {
event.waitUntil(
caches.open(CACHE)