@@ -42,19 +42,13 @@ class Application {
4242 private static instance : Application | null = null ;
4343
4444 version : string ;
45- router : any ;
4645 previousVersion : string ;
4746 highestInstalledVersion : string ;
48- el : HTMLElement | null ;
49- autoUpdate : any ;
5047
5148 private constructor ( ) {
5249 this . version = remote . app . getVersion ( ) || '' ;
53- this . router = null ;
5450 this . previousVersion = DEFAULT_APP_VERSION ;
5551 this . highestInstalledVersion = this . version ;
56- this . el = null ;
57- this . autoUpdate = ( window as any ) . autoUpdate ;
5852 }
5953
6054 public static getInstance ( ) : Application {
@@ -125,7 +119,7 @@ class Application {
125119 /**
126120 * Enable all debug output for the development mode.
127121 */
128- enableDevelopmentDebug ( ) {
122+ private enableDevelopmentDebug ( ) {
129123 if ( process . env . NODE_ENV === 'development' ) {
130124 // eslint-disable-next-line @typescript-eslint/no-var-requires
131125 require ( 'debug' ) . enable ( 'mon*,had*' ) ;
@@ -137,7 +131,7 @@ class Application {
137131 * user is choosing which connection, so when the user clicks on Connect,
138132 * Compass can connect to the MongoDB instance faster.
139133 */
140- preloadSlowModules ( ) {
134+ private preloadSlowModules ( ) {
141135 marky . mark ( 'Pre-loading additional modules required to connect' ) ;
142136 // Seems like this doesn't have as much of an effect as we'd hoped as
143137 // most of the expense has already occurred. You can see it take 1700ms
@@ -152,7 +146,7 @@ class Application {
152146 * start showing status indicators as
153147 * quickly as possible.
154148 */
155- async render ( ) {
149+ private async render ( ) {
156150 await defaultPreferencesInstance . refreshPreferences ( ) ;
157151 const initialAutoConnectPreferences =
158152 await this . getWindowAutoConnectPreferences ( ) ;
@@ -168,13 +162,13 @@ class Application {
168162 }
169163 ) ;
170164
171- this . el = document . querySelector ( '#application' ) ;
172- if ( ! this . el ) {
165+ const elem = document . querySelector ( '#application' ) ;
166+ if ( ! elem ) {
173167 throw new Error ( 'Application container not found' ) ;
174168 }
175169
176170 // Create the application container structure
177- this . el . innerHTML = `
171+ elem . innerHTML = `
178172 <div id="application">
179173 <div data-hook="layout-container"></div>
180174 </div>
@@ -213,7 +207,7 @@ class Application {
213207 }
214208 />
215209 </ React . StrictMode > ,
216- this . el . querySelector ( '[data-hook="layout-container"]' )
210+ elem . querySelector ( '[data-hook="layout-container"]' )
217211 ) ;
218212
219213 if ( ! isSecretStorageAvailable ) {
0 commit comments