Commit 8cbc9978 authored by Robert Knight's avatar Robert Knight

Update an outdated comment re. `documentInfoChanged`

The sidebar now supports guests calling this RPC method multiple times,
and they do so when a client-side navigation happens. See commit
a8cff801.
parent c304f1f4
......@@ -260,10 +260,9 @@ export class FrameSyncService {
this._guestRPC.set(sourceId, guestRPC);
// Update document metadata for this guest. We currently assume that the
// guest will make this call once after it connects. To handle updates
// to the document, we'll need to change `connectFrame` to update rather than
// add to the frame list.
// Update document metadata for this guest. The guest will call this method
// immediately after it connects to the sidebar. It may call it again
// later if the document in the guest frame is navigated.
guestRPC.on('documentInfoChanged', (info: DocumentInfo) => {
this._store.connectFrame({
id: sourceId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment