[accelerator] polish pizza accel

This commit is contained in:
nymkappa
2024-04-16 16:01:52 +09:00
parent 26807e80db
commit 64ba033602
8 changed files with 40 additions and 31 deletions

View File

@@ -86,7 +86,7 @@ const defaultEnv: Env = {
providedIn: 'root'
})
export class StateService {
ref: string = '';
referrer: string = '';
isBrowser: boolean = isPlatformBrowser(this.platformId);
isMempoolSpaceBuild = window['isMempoolSpaceBuild'] ?? false;
backend: 'esplora' | 'electrum' | 'none' = 'esplora';
@@ -164,7 +164,7 @@ export class StateService {
private router: Router,
private storageService: StorageService,
) {
this.ref = window.document.referrer;
this.referrer = window.document.referrer;
const browserWindow = window || {};
// @ts-ignore
@@ -192,7 +192,7 @@ export class StateService {
}
});
if (this.ref === 'https://cash.app/' && window.innerWidth < 850 && window.location.pathname.startsWith('/tx/')) {
if (this.referrer === 'https://cash.app/' && window.innerWidth < 850 && window.location.pathname.startsWith('/tx/')) {
this.router.navigate(['/tracker/' + window.location.pathname.slice(4)]);
}