]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+about/about-peertube/about-peertube.component.ts
fix duplicate id in svg, empty alt in base email
[github/Chocobozzz/PeerTube.git] / client / src / app / +about / about-peertube / about-peertube.component.ts
1 import { Component, AfterViewChecked } from '@angular/core'
2 import { ViewportScroller } from '@angular/common'
3
4 @Component({
5 selector: 'my-about-peertube',
6 templateUrl: './about-peertube.component.html',
7 styleUrls: [ './about-peertube.component.scss' ]
8 })
9
10 export class AboutPeertubeComponent implements AfterViewChecked {
11 constructor (
12 private viewportScroller: ViewportScroller
13 ) {}
14
15 ngAfterViewChecked () {
16 if (window.location.hash) this.viewportScroller.scrollToAnchor(window.location.hash.replace('#', ''))
17 }
18 }