Skip to content

Commit

Permalink
chores() : file data.json file path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raiyanu committed May 25, 2024
1 parent 9559b71 commit 104189e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
17 changes: 0 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,6 @@ <h2 style="text-align: center; width: 100%">Scan to share Menu</h2>
"
></div>
</article>
<article class="list">
<h2 id="ICE">ICE CREAM DELIGHTS</h2>
<ul>
<li>
<span>
<h3>COOKIE DOUGH BLISS</h3>
<p>
A classic favorite featuring chunks of cookie dough mixed into
creamy vanilla ice cream.
</p>
</span>
<span>
<h1><span>$</span>6.99</h1>
</span>
</li>
</ul>
</article>
</main>

<!-- footer -->
Expand Down
2 changes: 1 addition & 1 deletion js/content-loader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
async function fetchContentData() {
try {
const response = await fetch("/data.json"); // Ensure the correct path to your JSON file
const response = await fetch("../data.json");
if (!response.ok) {
throw new Error("Network response was not ok");
}
Expand Down

0 comments on commit 104189e

Please sign in to comment.