Fixed null reference

This commit is contained in:
Eduard Urbach 2017-11-18 18:10:26 +01:00
parent b6594fc0b8
commit dbe7371921

View File

@ -117,7 +117,7 @@ export class AnimeNotifier {
this.app.loading = this.app.find("loading")
// Theme
if(this.user.dataset.theme !== "light") {
if(this.user && this.user.dataset.theme !== "light") {
darkTheme()
}