From da9a892e437e6d63747c20c5128f5498124624a8 Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Fri, 29 Mar 2019 14:13:17 +0000 Subject: [PATCH] Fixed the toggle button --- src/Ombi/ClientApp/src/app/my-nav/my-nav.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Ombi/ClientApp/src/app/my-nav/my-nav.component.ts b/src/Ombi/ClientApp/src/app/my-nav/my-nav.component.ts index a52f99969..8bcd67ef6 100644 --- a/src/Ombi/ClientApp/src/app/my-nav/my-nav.component.ts +++ b/src/Ombi/ClientApp/src/app/my-nav/my-nav.component.ts @@ -29,6 +29,9 @@ export class MyNavComponent implements OnInit { public ngOnInit(): void { this.theme = localStorage.getItem("theme"); + if(!this.theme) { + localStorage.setItem("theme","light"); + } } public navItems: INavBar[] = [