From 99553210be5a80318e5df010af3988c5a2b6be41 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 8 Jul 2024 15:52:53 +0100 Subject: [PATCH] Ensure we do not load matrix-react-sdk is a manner which can white-screen Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/vector/index.ts | 2 +- src/vector/init.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vector/index.ts b/src/vector/index.ts index b5255d4974..2ac8b461db 100644 --- a/src/vector/index.ts +++ b/src/vector/index.ts @@ -19,7 +19,6 @@ limitations under the License. */ import { logger } from "matrix-js-sdk/src/logger"; -import { extractErrorMessageFromError } from "matrix-react-sdk/src/components/views/dialogs/ErrorDialog"; // These are things that can run before the skin loads - be careful not to reference the react-sdk though. import { parseQsFromFragment } from "./url_utils"; @@ -120,6 +119,7 @@ async function start(): Promise { showError, showIncompatibleBrowser, _t, + extractErrorMessageFromError, } = await import( /* webpackChunkName: "init" */ /* webpackPreload: true */ diff --git a/src/vector/init.tsx b/src/vector/init.tsx index 9885f567a7..76c238d0e4 100644 --- a/src/vector/init.tsx +++ b/src/vector/init.tsx @@ -143,3 +143,5 @@ export async function loadModules(): Promise { } export { _t } from "../languageHandler"; + +export { extractErrorMessageFromError } from "matrix-react-sdk/src/components/views/dialogs/ErrorDialog";