Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-bstein committed Jan 6, 2025
1 parent f32b8bd commit fa6998a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export class GameMapImageUrlPipe implements PipeTransform {
if (!value) {
return `${this.config.basehref}assets/map.png`;
}

const isAbsolute = new URL(this.document.baseURI).origin !== new URL(value, this.document.baseURI).origin;
return isAbsolute ? value : `${this.config.imagehost}/${value}`;
}
Expand Down

0 comments on commit fa6998a

Please sign in to comment.