Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
9807e4ca
Commit
9807e4ca
authored
Oct 06, 2021
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add note about assumptions VS integration makes about `injectClient`
parent
1e67c34e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
vitalsource.js
src/annotator/integrations/vitalsource.js
+7
-1
No files found.
src/annotator/integrations/vitalsource.js
View file @
9807e4ca
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment