mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-22 20:51:00 +03:00
Refactored initialization process to better facilitate auth if necessary
Date in user profile dialog now shows date
This commit is contained in:
@@ -79,11 +79,11 @@ export class PlayerComponent implements OnInit {
|
||||
this.uuid = this.route.snapshot.paramMap.get('uuid');
|
||||
|
||||
// loading config
|
||||
if (this.postsService.config) {
|
||||
if (this.postsService.initialized) {
|
||||
this.processConfig();
|
||||
} else {
|
||||
this.postsService.config_reloaded.subscribe(changed => { // loads settings
|
||||
if (changed) {
|
||||
this.postsService.service_initialized.subscribe(init => { // loads settings
|
||||
if (init) {
|
||||
this.processConfig();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user