From d1f190c894522878e30e5daf4df9515cde2ed641 Mon Sep 17 00:00:00 2001 From: Tom Prince Date: Fri, 19 Jul 2024 18:13:42 -0600 Subject: [PATCH] BUGFIX: Fix mathjax path on dev server. (#1501) --- src/@types/global.d.ts | 1 + src/ui/GameRoot.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 0e0475812..3df0bd410 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -1,5 +1,6 @@ // Defined by webpack on startup or compilation declare const __COMMIT_HASH__: string; +declare const __webpack_public_path__: string; // When using file-loader, we'll get a path to the resource declare module "*.png" { diff --git a/src/ui/GameRoot.tsx b/src/ui/GameRoot.tsx index a1fbe3d82..962331e9a 100644 --- a/src/ui/GameRoot.tsx +++ b/src/ui/GameRoot.tsx @@ -385,7 +385,7 @@ export function GameRoot(): React.ReactElement { } return ( - +