fix meta env path
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Elizabeth Hunt 2024-03-09 22:15:53 -07:00
parent 42838864af
commit a42d1d0323
Signed by: simponic
GPG Key ID: 52B3774857EB24B1

View File

@ -1,11 +1,11 @@
import { type SpriteSpec, SPRITE_SPECS } from ".";
import { SOUND_SPECS, SoundSpec } from "./sounds";
const BASE_URL = document.location;
const BASE_URL = import.meta.env.BASE_URL ?? document.location;
export const FONT = new FontFace(
"scientifica",
`url(${BASE_URL}/fonts/scientifica.ttf)`
`url(${BASE_URL}fonts/scientifica.ttf)`
);
FONT.load().then((font) => {
document.fonts.add(font);