hijack /tx/ page for tracker users

This commit is contained in:
Mononaut 2024-04-13 09:24:52 +00:00
parent ecc234a96a
commit da25ed431f
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -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.liveMempoolBlockTransactions$ = merge(
this.mempoolBlockTransactions$.pipe(map(transactions => { return { transactions }; })), this.mempoolBlockTransactions$.pipe(map(transactions => { return { transactions }; })),
this.mempoolBlockDelta$.pipe(map(delta => { return { delta }; })), this.mempoolBlockDelta$.pipe(map(delta => { return { delta }; })),