Ensure we do not load matrix-react-sdk is a manner which can white-screen
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
668450325c
commit
99553210be
2 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,6 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { logger } from "matrix-js-sdk/src/logger";
|
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.
|
// These are things that can run before the skin loads - be careful not to reference the react-sdk though.
|
||||||
import { parseQsFromFragment } from "./url_utils";
|
import { parseQsFromFragment } from "./url_utils";
|
||||||
|
@ -120,6 +119,7 @@ async function start(): Promise<void> {
|
||||||
showError,
|
showError,
|
||||||
showIncompatibleBrowser,
|
showIncompatibleBrowser,
|
||||||
_t,
|
_t,
|
||||||
|
extractErrorMessageFromError,
|
||||||
} = await import(
|
} = await import(
|
||||||
/* webpackChunkName: "init" */
|
/* webpackChunkName: "init" */
|
||||||
/* webpackPreload: true */
|
/* webpackPreload: true */
|
||||||
|
|
|
@ -143,3 +143,5 @@ export async function loadModules(): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export { _t } from "../languageHandler";
|
export { _t } from "../languageHandler";
|
||||||
|
|
||||||
|
export { extractErrorMessageFromError } from "matrix-react-sdk/src/components/views/dialogs/ErrorDialog";
|
||||||
|
|
Loading…
Reference in a new issue