@@ -119,9 +119,9 @@ export class AppService {
119119 private defaultLocation : Location = new Location ( '(Greenwich Observatory)' , 51.47 , 0 , 'UT' ) ;
120120 private _location = new BehaviorSubject < Location > ( this . defaultLocation ) ;
121121 private locationObserver : Observable < Location > = this . _location . asObservable ( ) ;
122- private _locations : Location [ ] = [ ] ;
122+ private readonly _locations : Location [ ] = [ ] ;
123123 private _solarSystem = new SolarSystem ( ) ;
124- private _starCatalog : StarCatalog ;
124+ private readonly _starCatalog : StarCatalog ;
125125 private _starsReady = new BehaviorSubject < boolean > ( false ) ;
126126 private starsReadyObserver : Observable < boolean > = this . _starsReady . asObservable ( ) ;
127127 private _asteroidsReady = new BehaviorSubject < boolean > ( false ) ;
@@ -130,8 +130,8 @@ export class AppService {
130130 private currentTabObserver : Observable < CurrentTab > = this . _currentTab . asObservable ( ) ;
131131 private settingsSource = new Subject < UserSetting > ( ) ;
132132 private settingsObserver : Observable < UserSetting > = this . settingsSource . asObservable ( ) ;
133- private allSettings : { [ view : string ] : { [ setting : string ] : boolean | number | string } } = { } ;
134- private debouncedSaveSettings : ( ) => void ;
133+ private readonly allSettings : { [ view : string ] : { [ setting : string ] : boolean | number | string } } = { } ;
134+ private readonly debouncedSaveSettings : ( ) => void ;
135135 private knownIanaTimezones : Set < string > ;
136136 private _northAzimuth = false ;
137137 private _defaultTab = CurrentTab . SKY ;
@@ -143,9 +143,9 @@ export class AppService {
143143 private _nativeDateTime = false ;
144144 private _showNativeInputDialog = false ;
145145 private _warningNativeDateTime = false ;
146- private hostname : string ;
147- private port : number ;
148- private localTesting : boolean ;
146+ private readonly hostname : string ;
147+ private readonly port : number ;
148+ private readonly localTesting : boolean ;
149149
150150 constructor ( astroDataService : AstroDataService , private httpClient : HttpClient , private _sanitizer : DomSanitizer ,
151151 private router : Router ) {
@@ -314,6 +314,7 @@ export class AppService {
314314 set currentTab ( newTab : CurrentTab ) {
315315 if ( this . _currentTab . getValue ( ) !== newTab ) {
316316 this . _currentTab . next ( newTab ) ;
317+ // noinspection JSIgnoredPromiseFromCall
317318 this . router . navigate ( [ '/' + tabNames [ this . _currentTab . getValue ( ) ] ] ) ;
318319 }
319320 }
0 commit comments