File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,17 +160,17 @@ async function initWave(initOpts: WaveInitOpts) {
160160 const globalWS = initWshrpc ( makeTabRouteId ( initOpts . tabId ) ) ;
161161 ( window as any ) . globalWS = globalWS ;
162162 ( window as any ) . TabRpcClient = TabRpcClient ;
163- await loadConnStatus ( ) ;
164- await loadBadges ( ) ;
165- initGlobalWaveEventSubs ( initOpts ) ;
166- subscribeToConnEvents ( ) ;
167- if ( isMacOS ( ) ) {
168- const macOSVersion = await RpcApi . MacOSVersionCommand ( TabRpcClient ) ;
169- setMacOSVersion ( macOSVersion ) ;
170- }
171163
172164 // ensures client/window/workspace are loaded into the cache before rendering
173165 try {
166+ await loadConnStatus ( ) ;
167+ await loadBadges ( ) ;
168+ initGlobalWaveEventSubs ( initOpts ) ;
169+ subscribeToConnEvents ( ) ;
170+ if ( isMacOS ( ) ) {
171+ const macOSVersion = await RpcApi . MacOSVersionCommand ( TabRpcClient ) ;
172+ setMacOSVersion ( macOSVersion ) ;
173+ }
174174 const [ _client , waveWindow , initialTab ] = await Promise . all ( [
175175 WOS . loadAndPinWaveObject < Client > ( WOS . makeORef ( "client" , initOpts . clientId ) ) ,
176176 WOS . loadAndPinWaveObject < WaveWindow > ( WOS . makeORef ( "window" , initOpts . windowId ) ) ,
You can’t perform that action at this time.
0 commit comments