BUGFIX: Fix mathjax path on dev server. (#1501)

This commit is contained in:
Tom Prince 2024-07-19 18:13:42 -06:00 committed by GitHub
parent dc93d166f0
commit d1f190c894
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

@ -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" {

@ -385,7 +385,7 @@ export function GameRoot(): React.ReactElement {
}
return (
<MathJaxContext version={3} src={"dist/mathjax/tex-chtml.js"}>
<MathJaxContext version={3} src={__webpack_public_path__ + "mathjax/tex-chtml.js"}>
<ErrorBoundary key={errorBoundaryKey} softReset={softReset}>
<BypassWrapper content={bypassGame ? mainPage : null}>
<HistoryProvider>