Skip to content

Commit

Permalink
fix: use relative path to work with base-href option.
Browse files Browse the repository at this point in the history
  • Loading branch information
poirierlouis committed Feb 3, 2024
1 parent bcda9d5 commit 93ff79a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&amp&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="icon" type="image/png" href="assets/logo/48.png">
<link rel="icon" type="image/png" href="./assets/logo/48.png">
<link rel="manifest" href="manifest.webmanifest">
<meta name="theme-color" content="#1976d2">
</head>
Expand Down
2 changes: 1 addition & 1 deletion src/shared/services/icons.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class IconsService {
for (const icon of this.icons) {
this.iconRegistry.addSvgIcon(
icon,
this.sanitizer.bypassSecurityTrustResourceUrl(`/assets/icons/${icon}.svg`)
this.sanitizer.bypassSecurityTrustResourceUrl(`./assets/icons/${icon}.svg`)
);
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/shared/services/red-dump.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,31 +163,31 @@ function loadAliases(nodes: RedNodeAst[]): void {
}

async function loadEnums(): Promise<RedEnumAst[]> {
const json: any[] = await getJson('/assets/reddump/enums.json');
const json: any[] = await getJson('./assets/reddump/enums.json');
const enums: RedEnumAst[] = json.map(RedEnumAst.fromJson);

enums.sort(RedEnumAst.sort);
return enums;
}

async function loadBitfields(): Promise<RedBitfieldAst[]> {
const json: any[] = await getJson('/assets/reddump/bitfields.json');
const json: any[] = await getJson('./assets/reddump/bitfields.json');
const bitfields: RedBitfieldAst[] = json.map(RedBitfieldAst.fromJson);

bitfields.sort(RedBitfieldAst.sort);
return bitfields;
}

async function loadFunctions(): Promise<RedFunctionAst[]> {
const json: any[] = await getJson('/assets/reddump/globals.json');
const json: any[] = await getJson('./assets/reddump/globals.json');
const functions: RedFunctionAst[] = json.map(RedFunctionAst.fromJson);

functions.sort(RedFunctionAst.sort);
return functions;
}

async function loadObjects(): Promise<RedClassAst[]> {
const json: any[] = await getJson('/assets/reddump/classes.json');
const json: any[] = await getJson('./assets/reddump/classes.json');
const objects: RedClassAst[] = json.map(RedClassAst.fromJson);

objects.sort(RedClassAst.sort);
Expand Down

0 comments on commit 93ff79a

Please sign in to comment.