mirror of
https://github.com/mempool/mempool.git
synced 2025-03-15 04:11:48 +01:00
Merge pull request #5050 from mempool/mononaut/t4-unfurls
Enable testnet4 unfurls
This commit is contained in:
commit
9b83ac29b7
2 changed files with 5 additions and 1 deletions
|
@ -168,6 +168,10 @@ let routes: Routes = [
|
||||||
path: 'testnet',
|
path: 'testnet',
|
||||||
loadChildren: () => import('./previews.module').then(m => m.PreviewsModule)
|
loadChildren: () => import('./previews.module').then(m => m.PreviewsModule)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'testnet4',
|
||||||
|
loadChildren: () => import('./previews.module').then(m => m.PreviewsModule)
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'signet',
|
path: 'signet',
|
||||||
loadChildren: () => import('./previews.module').then(m => m.PreviewsModule)
|
loadChildren: () => import('./previews.module').then(m => m.PreviewsModule)
|
||||||
|
|
|
@ -286,7 +286,7 @@ export function matchRoute(network: string, path: string, matchFor: string = 're
|
||||||
if (parts[0] === 'preview') {
|
if (parts[0] === 'preview') {
|
||||||
parts.shift();
|
parts.shift();
|
||||||
}
|
}
|
||||||
if (['testnet', 'signet'].includes(parts[0])) {
|
if (['testnet', 'testnet4', 'signet'].includes(parts[0])) {
|
||||||
match.networkMode = parts.shift() || 'mainnet';
|
match.networkMode = parts.shift() || 'mainnet';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue