fixed generateCollaborationLink() (#1081)
This commit is contained in:
parent
4442addc02
commit
12d7550958
@ -96,7 +96,7 @@ export function getCollaborationLinkData(link: string) {
|
|||||||
export async function generateCollaborationLink() {
|
export async function generateCollaborationLink() {
|
||||||
const id = await generateRandomID();
|
const id = await generateRandomID();
|
||||||
const key = await generateEncryptionKey();
|
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> {
|
async function getImportedKey(key: string, usage: string): Promise<CryptoKey> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user