@@ -151,33 +151,21 @@ export async function loadApp(fragParams: {}) {
151151
152152 platform . startUpdater ( ) ;
153153
154- try {
155- // Don't bother loading the app until the config is verified
156- const config = await verifyServerConfig ( ) ;
157- const MatrixChat = sdk . getComponent ( 'structures.MatrixChat' ) ;
158- return < MatrixChat
159- onNewScreen = { onNewScreen }
160- makeRegistrationUrl = { makeRegistrationUrl }
161- ConferenceHandler = { VectorConferenceHandler }
162- config = { config }
163- realQueryParams = { params }
164- startingFragmentQueryParams = { fragParams }
165- enableGuest = { ! config . disable_guests }
166- onTokenLoginCompleted = { onTokenLoginCompleted }
167- initialScreenAfterLogin = { getScreenFromLocation ( window . location ) }
168- defaultDeviceDisplayName = { platform . getDefaultDeviceDisplayName ( ) }
169- /> ;
170- } catch ( err ) {
171- console . error ( err ) ;
172-
173- let errorMessage = err . translatedMessage
174- || _t ( "Unexpected error preparing the app. See console for details." ) ;
175- errorMessage = < span > { errorMessage } </ span > ;
176-
177- // Like the compatibility page, AWOOOOOGA at the user
178- const GenericErrorPage = sdk . getComponent ( "structures.GenericErrorPage" ) ;
179- return < GenericErrorPage message = { errorMessage } title = { _t ( "Your Riot is misconfigured" ) } /> ;
180- }
154+ // Don't bother loading the app until the config is verified
155+ const config = await verifyServerConfig ( ) ;
156+ const MatrixChat = sdk . getComponent ( 'structures.MatrixChat' ) ;
157+ return < MatrixChat
158+ onNewScreen = { onNewScreen }
159+ makeRegistrationUrl = { makeRegistrationUrl }
160+ ConferenceHandler = { VectorConferenceHandler }
161+ config = { config }
162+ realQueryParams = { params }
163+ startingFragmentQueryParams = { fragParams }
164+ enableGuest = { ! config . disable_guests }
165+ onTokenLoginCompleted = { onTokenLoginCompleted }
166+ initialScreenAfterLogin = { getScreenFromLocation ( window . location ) }
167+ defaultDeviceDisplayName = { platform . getDefaultDeviceDisplayName ( ) }
168+ /> ;
181169}
182170
183171async function verifyServerConfig ( ) {
0 commit comments