2019-07-21 16:59:47 +02:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
2020-02-16 16:15:07 +01:00
|
|
|
import { WebsocketService } from '../../services/websocket.service';
|
2020-03-23 18:52:08 +01:00
|
|
|
import { SeoService } from 'src/app/services/seo.service';
|
2020-07-18 07:59:12 +02:00
|
|
|
import { StateService } from 'src/app/services/state.service';
|
2019-07-21 16:59:47 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-about',
|
|
|
|
templateUrl: './about.component.html',
|
|
|
|
styleUrls: ['./about.component.scss']
|
|
|
|
})
|
|
|
|
export class AboutComponent implements OnInit {
|
2020-07-18 07:59:12 +02:00
|
|
|
active = 1;
|
|
|
|
hostname = document.location.hostname;
|
|
|
|
|
2019-07-21 16:59:47 +02:00
|
|
|
|
2019-07-26 11:48:32 +02:00
|
|
|
constructor(
|
2020-02-16 16:15:07 +01:00
|
|
|
private websocketService: WebsocketService,
|
2020-03-23 18:52:08 +01:00
|
|
|
private seoService: SeoService,
|
2020-07-18 07:59:12 +02:00
|
|
|
private stateService: StateService,
|
2019-07-26 11:48:32 +02:00
|
|
|
) { }
|
2019-07-21 16:59:47 +02:00
|
|
|
|
|
|
|
ngOnInit() {
|
2020-03-23 18:52:08 +01:00
|
|
|
this.seoService.setTitle('Contributors');
|
2020-02-17 14:39:20 +01:00
|
|
|
this.websocketService.want(['blocks']);
|
2020-07-18 07:59:12 +02:00
|
|
|
if (this.stateService.network === 'bisq') {
|
|
|
|
this.active = 2;
|
|
|
|
}
|
|
|
|
if (document.location.port !== '443') {
|
|
|
|
this.hostname = this.hostname + ':' + document.location.port;
|
|
|
|
}
|
2019-07-21 16:59:47 +02:00
|
|
|
}
|
|
|
|
}
|