From dbe7371921594ff82745f2ae57a86065291bf8c5 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 18 Nov 2017 18:10:26 +0100 Subject: [PATCH] Fixed null reference --- scripts/AnimeNotifier.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/AnimeNotifier.ts b/scripts/AnimeNotifier.ts index 7240acc0..124ee629 100644 --- a/scripts/AnimeNotifier.ts +++ b/scripts/AnimeNotifier.ts @@ -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() }