Commit 9807e4ca authored by Robert Knight's avatar Robert Knight

Add note about assumptions VS integration makes about `injectClient`

parent 1e67c34e
......@@ -61,9 +61,15 @@ export class VitalSourceContainerIntegration {
annotator.injectClient(frame);
}
};
injectClientIntoContentFrame();
// Re-inject client into content frame after a chapter navigation.
//
// We currently don't do any debouncing here and rely on `injectClient` to
// be idempotent and cheap.
this._frameObserver = new MutationObserver(injectClientIntoContentFrame);
this._frameObserver.observe(shadowRoot, { childList: true, subtree: true });
injectClientIntoContentFrame();
}
destroy() {
......
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