fixed generateCollaborationLink() (#1081)

This commit is contained in:
Marcel Kloubert 2020-03-25 16:18:22 +01:00 committed by GitHub
parent 4442addc02
commit 12d7550958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ export function getCollaborationLinkData(link: string) {
export async function generateCollaborationLink() {
const id = await generateRandomID();
const key = await generateEncryptionKey();
return `${window.location.origin}#room=${id},${key}`;
return `${window.location.origin}${window.location.pathname}#room=${id},${key}`;
}
async function getImportedKey(key: string, usage: string): Promise<CryptoKey> {