Fixes monaco webworker and chunk loading issues.

This commit is contained in:
Henning Dieterichs
2020-03-21 12:52:20 +01:00
parent 107c2f6470
commit 776b6aee02
3 changed files with 16 additions and 3 deletions

View File

@@ -17,9 +17,15 @@ import { Disposable } from "@hediet/std/disposable";
import { startInterval } from "@hediet/std/timer";
declare const window: Window & {
webViewData?: { serverSecret: string; serverPort: number };
webViewData?: {
serverSecret: string;
serverPort: number;
publicPath: string;
};
};
declare let __webpack_public_path__: string;
export class Model {
public readonly dispose = Disposable.fn();
public readonly runningMode: "standalone" | "webView" | "webViewIFrame" =
@@ -83,6 +89,7 @@ export class Model {
this.port = data.serverPort;
this.serverSecret = data.serverSecret;
this.runningMode = "webView";
__webpack_public_path__ = data.publicPath;
const updateTheme = () => {
const isLight = document.body.classList.contains(