mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
load map images from remote
This commit is contained in:
parent
6dcb4493a1
commit
8325c0c57d
4 changed files with 18 additions and 5 deletions
|
|
@ -16,9 +16,11 @@ export interface MapRenderProps {
|
|||
scale: number;
|
||||
}
|
||||
|
||||
const map_root = document.querySelector('[data-maps]').getAttribute('data-maps');
|
||||
|
||||
export function MapRender(props: MapRenderProps) {
|
||||
const mapAlias = findMapAlias(props.header.map);
|
||||
const image = `/images/leveloverview/dist/${mapAlias}.webp`;
|
||||
const image = `${map_root}images/${mapAlias}.webp`;
|
||||
const background = `url(${image})`;
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue