Skip to content

Commit

Permalink
fixed generateCollaborationLink() (excalidraw#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Kloubert authored Mar 25, 2020
1 parent 4442add commit 12d7550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 12d7550

Please sign in to comment.