chore(client): fix routing

cherry-picked from c771135fd852a972a775abe6b1a5e4199cc5191b
This commit is contained in:
syuilo 2022-07-13 18:28:04 +09:00 committed by Johann150
parent e467143b76
commit 26a45a63b3
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -127,7 +127,9 @@ export class Router extends EventEmitter<{
props.set(p.name, safeURIDecode(parts[0].substring(p.startsWith.length))); props.set(p.name, safeURIDecode(parts[0].substring(p.startsWith.length)));
parts.shift(); parts.shift();
} else { } else {
if (parts[0]) {
props.set(p.name, safeURIDecode(parts[0])); props.set(p.name, safeURIDecode(parts[0]));
}
parts.shift(); parts.shift();
} }
} }