Skip to content

Commit

Permalink
Option to disable imprint
Browse files Browse the repository at this point in the history
  • Loading branch information
jggoebel committed Jun 5, 2024
1 parent 1d70730 commit 3665fc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
</div>
</div>

<div class="imprint" *ngIf="imprint">
<div class="imprint" *ngIf="imprint !== ''">
<a [href]="imprint">Impressum</a>
</div>
<div class="privacy" *ngIf="privacyPolicy">
<div class="privacy" *ngIf="privacyPolicy !== ''">
<a [href]="privacyPolicy">Privacy Policy</a>
</div>
5 changes: 5 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ export class AppComponent {
if (environment.privacypolicy && environment.privacypolicy != '') {
this.privacyPolicy = environment.privacypolicy;
}

if (localStorage.getItem('score_server') != '') {
this.imprint = '';
this.privacyPolicy = '';
}
}
}

0 comments on commit 3665fc2

Please sign in to comment.