Fix the small mechanical rules. [skip build]
Checks / checks (push) Successful in 2m12s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-01 10:28:59 +11:00
parent bb85cd9778
commit 73554ecf7f
45 changed files with 331 additions and 347 deletions
+3 -9
View File
@@ -182,15 +182,9 @@ function getCurrentRoomId(): string | null {
try {
// Get the pathname from URL
// Support both normal routing and hash routing
let { pathname } = window.location;
// If using hash router, parse from hash
if (window.location.hash) {
const hashMatch = window.location.hash.match(/#(.+)/);
if (hashMatch) {
pathname = hashMatch[1];
}
}
const hashMatch = window.location.hash.match(/#(.+)/);
const [, hashPath] = hashMatch ?? [];
const pathname = hashPath ?? window.location.pathname;
// URL patterns:
// /home/:roomIdOrAlias/:eventId?/