From 7c93905d14bf7d86d04dbbffc6e6a510c852f360 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 13 Dec 2019 09:32:36 +0100 Subject: Fix theme loading --- client/src/app/core/theme/theme.service.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/src/app/core/theme/theme.service.ts') diff --git a/client/src/app/core/theme/theme.service.ts b/client/src/app/core/theme/theme.service.ts index 9be8e7a2d..3eebc1acc 100644 --- a/client/src/app/core/theme/theme.service.ts +++ b/client/src/app/core/theme/theme.service.ts @@ -5,6 +5,7 @@ import { environment } from '../../../environments/environment' import { PluginService } from '@app/core/plugins/plugin.service' import { ServerConfigTheme } from '@shared/models' import { peertubeLocalStorage } from '@app/shared/misc/peertube-web-storage' +import { first } from 'rxjs/operators' @Injectable() export class ThemeService { @@ -123,6 +124,7 @@ export class ThemeService { } this.auth.userInformationLoaded + .pipe(first()) .subscribe(() => this.updateCurrentTheme()) } -- cgit v1.2.3