Commit f871b43 1 parent 30b8d32 commit f871b43 Copy full SHA for f871b43
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 27
27
28
28
async function fetchNesCarts() {
29
29
try {
30
- const response = await fetch (' /nesCarts.json' );
30
+ const basePath = window .location .origin .includes (' github' ) ? ' /nes-cart-browser' : ' ' ;
31
+ const response = await fetch (` ${basePath }/nesCarts.json ` );
31
32
nesCarts = await response .json ();
32
33
} catch (error ) {
33
34
console .error (' Error fetching nesCarts:' , error );
36
37
}
37
38
}
38
39
39
- // TODO: Open dialog on cart click and show nescartdb entry
40
- // https://nescartdb.com/search/advanced?catalog_op=contains&catalog={catalogId}
40
+ // TODO: Open dialog on cart click and show nescartdb entry
41
+ // https://nescartdb.com/search/advanced?catalog_op=contains&catalog={catalogId}
41
42
</script >
42
43
43
44
<div class =" container py-2" >
You can’t perform that action at this time.
0 commit comments