This commit is contained in:
parent
42838864af
commit
a42d1d0323
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user