mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fixed generateCollaborationLink() (#1081)
This commit is contained in:
parent
4442addc02
commit
12d7550958
1 changed files with 1 additions and 1 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Reference in a new issue