Strip hash from passphrase on custom connection (#124)
This commit is contained in:
parent
e8c46afceb
commit
5567fdd554
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ export default function CustomRoomConnection() {
|
|||
const router = useRouter();
|
||||
const { liveKitUrl, token } = router.query;
|
||||
|
||||
const e2eePassphrase = typeof window !== 'undefined' && decodePassphrase(window.location.hash);
|
||||
const e2eePassphrase =
|
||||
typeof window !== 'undefined' && decodePassphrase(window.location.hash.substring(1));
|
||||
const worker =
|
||||
typeof window !== 'undefined' &&
|
||||
new Worker(new URL('livekit-client/e2ee-worker', import.meta.url));
|
||||
|
|
Loading…
Reference in a new issue