don't preload error-view as we expect it to not be shown

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-04-22 18:49:39 +01:00
parent 5fdf805df2
commit 918a56d01a

View file

@ -148,7 +148,6 @@ export async function loadApp(fragParams: {}) {
export async function showError(title: string, messages?: string[]) { export async function showError(title: string, messages?: string[]) {
const ErrorView = (await import( const ErrorView = (await import(
/* webpackChunkName: "error-view" */ /* webpackChunkName: "error-view" */
/* webpackPreload: true */
"../components/structures/ErrorView")).default; "../components/structures/ErrorView")).default;
window.matrixChat = ReactDOM.render(<ErrorView title={title} messages={messages} />, window.matrixChat = ReactDOM.render(<ErrorView title={title} messages={messages} />,
document.getElementById('matrixchat')); document.getElementById('matrixchat'));