mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 08:43:53 +01:00
BUGFIX: Fix mathjax path on dev server. (#1501)
This commit is contained in:
parent
dc93d166f0
commit
d1f190c894
1
src/@types/global.d.ts
vendored
1
src/@types/global.d.ts
vendored
@ -1,5 +1,6 @@
|
|||||||
// Defined by webpack on startup or compilation
|
// Defined by webpack on startup or compilation
|
||||||
declare const __COMMIT_HASH__: string;
|
declare const __COMMIT_HASH__: string;
|
||||||
|
declare const __webpack_public_path__: string;
|
||||||
|
|
||||||
// When using file-loader, we'll get a path to the resource
|
// When using file-loader, we'll get a path to the resource
|
||||||
declare module "*.png" {
|
declare module "*.png" {
|
||||||
|
@ -385,7 +385,7 @@ export function GameRoot(): React.ReactElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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}>
|
<ErrorBoundary key={errorBoundaryKey} softReset={softReset}>
|
||||||
<BypassWrapper content={bypassGame ? mainPage : null}>
|
<BypassWrapper content={bypassGame ? mainPage : null}>
|
||||||
<HistoryProvider>
|
<HistoryProvider>
|
||||||
|
Loading…
Reference in New Issue
Block a user