Skip to content

Commit

Permalink
Change absolute to relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Luca Lagmöller committed Feb 9, 2024
1 parent aa0d224 commit 5e2965b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "rust8-web",
"version": "0.1.0",
"homepage": "./",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useRoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const loadableRoms: { id: string; name: string }[] = [
export const useRoms = (): Rom[] => {
const asyncState = useAsync(async (): Promise<Rom[]> => {
return await Promise.all(loadableRoms.map(async (loadableRom): Promise<Rom> => {
const response = await fetch(`/roms/${loadableRom.id}.ch8`);
const response = await fetch(`roms/${loadableRom.id}.ch8`);
const arrayBuffer = await response.arrayBuffer();
const content = new Uint8Array(arrayBuffer);

Expand Down

0 comments on commit 5e2965b

Please sign in to comment.