[demo] better? demo mode

This commit is contained in:
nymkappa
2024-10-24 16:52:47 +09:00
parent 908b8b4352
commit 99cc47cf00
4 changed files with 34 additions and 23 deletions

View File

@@ -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);
}
}