Fixed the toggle button

pull/3895/head
Jamie Rees 6 years ago
parent 403e79d5d3
commit da9a892e43

@ -29,6 +29,9 @@ export class MyNavComponent implements OnInit {
public ngOnInit(): void { public ngOnInit(): void {
this.theme = localStorage.getItem("theme"); this.theme = localStorage.getItem("theme");
if(!this.theme) {
localStorage.setItem("theme","light");
}
} }
public navItems: INavBar[] = [ public navItems: INavBar[] = [

Loading…
Cancel
Save