Skip to content

Commit

Permalink
Add GitHub Pages routing
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Apr 21, 2024
1 parent 98e6b5d commit f32e280
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
import { Component, OnInit, Renderer2 } from '@angular/core';
import { ApiService } from './services/api.service';
import { SetupService } from './services/setup.service';
import { Router, ActivatedRoute } from '@angular/router';
import { ThemeService } from './services/theme.service';
import { Component, OnInit, Renderer2 } from "@angular/core";
import { ApiService } from "./services/api.service";
import { SetupService } from "./services/setup.service";
import { Router, ActivatedRoute } from "@angular/router";
import { ThemeService } from "./services/theme.service";

@Component({
selector: 'app-root',
templateUrl: './app.component.html'
selector: "app-root",
templateUrl: "./app.component.html",
})
export class AppComponent implements OnInit {
title = 'app';
title = "app";

constructor(
private api: ApiService,
private setup: SetupService,
private theme: ThemeService,
private router: Router,
private renderer: Renderer2,
private activatedRoute: ActivatedRoute) {
constructor(
private api: ApiService,
private setup: SetupService,
private theme: ThemeService,
private router: Router,
private renderer: Renderer2,
private activatedRoute: ActivatedRoute
) {
let path = localStorage.getItem("path");
if (path) {
localStorage.removeItem("path");
this.router.navigate([path]);
}

this.theme.init(renderer);
}
this.theme.init(renderer);
}

async ngOnInit() {

}
async ngOnInit() {}
}

0 comments on commit f32e280

Please sign in to comment.