mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-16 14:16:16 -08:00
refactor: some general code improvements
This commit is contained in:
1 parent
41f3f34faa
commit
cb07cc2386
22 files changed
+405
-319
No files matched your search
@@ -17,6 +17,7 @@ import {
|
||||
import { DataService } from './services/data.service';
|
||||
import { SettingsService } from './services/settings.service';
|
||||
import { WhatsNewService } from './services/whats-new.service';
|
||||
import { Language } from './settings/language.enum';
|
||||
import { Settings } from './settings/settings.interface';
|
||||
import { Theme } from './settings/theme.enum';
|
||||
import { STORE_KEY } from './shared/enums/store-keys.enum';
|
||||
@@ -55,7 +56,7 @@ export class AppComponent {
|
||||
];
|
||||
|
||||
/** Default language as fallback */
|
||||
DEFAULT_LANG = 'en';
|
||||
DEFAULT_LANG = Language.ENGLISH;
|
||||
|
||||
/**
|
||||
* Creates an instance of AppComponent
|
||||
@@ -109,7 +110,7 @@ export class AppComponent {
|
||||
if (this.electronService.isElectron) {
|
||||
this.commandsList.forEach((command) =>
|
||||
this.electronService.listenOn(command.id, () =>
|
||||
this.ngZone.run(() => command.callback())
|
||||
this.ngZone.run((data) => command.callback(data))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user