Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alimusa17 committed Jan 26, 2024
1 parent 3897b0d commit 7de685a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import searchFunc from "./search.js";

//! add product to localStorage start
(async function () {
const photos = await fetch("../js/data.json");
const photos = await fetch("../E-Commerce/js/data.json");
const data = await photos.json();

data ? localStorage.setItem("products", JSON.stringify(data)) : [];
Expand Down

0 comments on commit 7de685a

Please sign in to comment.