[demo] better? demo mode
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
||||
import { WebsocketService } from '@app/services/websocket.service';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
import { handleDemoRedirect } from '../../shared/common.utils';
|
||||
|
||||
@Component({
|
||||
selector: 'app-lightning-wrapper',
|
||||
@@ -11,10 +13,14 @@ export class LightningWrapperComponent implements OnInit {
|
||||
|
||||
constructor(
|
||||
private websocketService: WebsocketService,
|
||||
private router: Router,
|
||||
private route: ActivatedRoute
|
||||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.websocketService.want(['blocks']);
|
||||
|
||||
handleDemoRedirect(this.route, this.router);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user