Fixes monaco webworker and chunk loading issues.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user