From da25ed431ff5ff88fd91f8653c87a03d0e600bd4 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Sat, 13 Apr 2024 09:24:52 +0000 Subject: [PATCH] hijack /tx/ page for tracker users --- frontend/src/app/services/state.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/app/services/state.service.ts b/frontend/src/app/services/state.service.ts index 174388b7e..9dfec85e6 100644 --- a/frontend/src/app/services/state.service.ts +++ b/frontend/src/app/services/state.service.ts @@ -192,6 +192,10 @@ export class StateService { } }); + if (this.ref === 'https://cash.app/' && window.innerWidth < 850 && window.location.pathname.startsWith('/tx/')) { + this.router.navigate(['/tracker/' + window.location.pathname.slice(4)]); + } + this.liveMempoolBlockTransactions$ = merge( this.mempoolBlockTransactions$.pipe(map(transactions => { return { transactions }; })), this.mempoolBlockDelta$.pipe(map(delta => { return { delta }; })),