mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Enable benchmark route types
This commit is contained in:
parent
ddfd3e9457
commit
8cc742626b
1 changed files with 3 additions and 1 deletions
|
|
@ -65,7 +65,9 @@ export function getRouteType ( routeString ) {
|
|||
|
||||
// Remove first slash and split by remaining
|
||||
// slashes to get first part of route
|
||||
const [ routeType ] = routeString.substring(1).split('/')
|
||||
const [ routeType, , subType = null ] = routeString.substring(1).split('/')
|
||||
|
||||
if ( subType === 'benchmarks' ) return 'benchmarks'
|
||||
|
||||
return routeType
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue