mirror of
https://github.com/cfultz/mtgcsv.git
synced 2024-11-23 17:40:03 +01:00
code correction
This commit is contained in:
parent
326c3fce93
commit
1aed7fb673
2
app.js
2
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 response = await fetch(`https://api.scryfall.com/cards/named?exact=${encodeURIComponent(cardName)}&set=${encodeURIComponent(setCode)}`);
|
||||||
const data = await response.json();
|
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 the relevant card details
|
||||||
return {
|
return {
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<p>
|
<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.
|
This app is not affiliated with Wizards of the Coast or Hasbro. All rights and trademarks are owned by their respective owners.
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -152,7 +152,7 @@ body {
|
|||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
|
2
sw.js
2
sw.js
@ -12,7 +12,7 @@ self.addEventListener("message", (event) => {
|
|||||||
self.skipWaiting();
|
self.skipWaiting();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
self.addEventListener('install', async (event) => {
|
self.addEventListener('install', async (event) => {
|
||||||
event.waitUntil(
|
event.waitUntil(
|
||||||
caches.open(CACHE)
|
caches.open(CACHE)
|
||||||
|
Loading…
Reference in New Issue
Block a user