@forevka/wordcanvas 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -65,8 +65,9 @@ const editor = new WordCanvas({
65
65
  container: document.getElementById("editor")!,
66
66
  backendUrl: "https://api.example.com",
67
67
  user: { id: "u-42", firstName: "Ada", lastName: "Lovelace" },
68
- // Join an existing session if the share link carried one:
69
- docId: params.get("doc") ?? undefined,
68
+ // Join an existing session if the share link carried one (the editor's own
69
+ // share links use ?collab=<docId>):
70
+ docId: params.get("collab") ?? undefined,
70
71
  });
71
72
 
72
73
  editor.on("shared", ({ url }) => navigator.clipboard.writeText(url));