Show local co-op icon in details page

This commit is contained in:
redphx
2025-01-03 19:49:40 +07:00
parent 68b29ecb50
commit 6448a00271
8 changed files with 73 additions and 18 deletions

View File

@@ -123,7 +123,7 @@ export function productTitleToSlug(title: string): string {
export function parseDetailsPath(path: string) {
const matches = /\/games\/(?<titleSlug>[^\/]+)\/(?<productId>\w+)/.exec(path);
if (!matches?.groups) {
return;
return {};
}
const titleSlug = matches.groups.titleSlug!.replaceAll('\%' + '7C', '-');