Skip to content

Commit d24dac9

Browse files
committed
Update product data fetch URL to use external source
1 parent 4b0800d commit d24dac9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

assets/js/shop.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class ProductStore {
2727
async fetchProducts() {
2828
try {
2929

30-
const response = await fetch('/assets/data/merchandises.json');
30+
// const response = await fetch('/assets/data/merchandises.json');
31+
const response = await fetch('https://pytogo-org.github.io/pytogo/assets/data/merchandises.json');
32+
3133
if (!response.ok) {
3234
throw new Error('Error fetching products');
3335
}

0 commit comments

Comments
 (0)