mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
Fix removing annotations with no type and attaching marks to invalid cfi
This commit is contained in:
parent
4f4a13fadb
commit
bbb05616ab
7 changed files with 14 additions and 11 deletions
|
@ -570,7 +570,9 @@ class IframeView {
|
|||
}
|
||||
|
||||
let range = this.contents.range(cfiRange);
|
||||
|
||||
if (!range) {
|
||||
return;
|
||||
}
|
||||
let container = range.commonAncestorContainer;
|
||||
let parent = (container.nodeType === 1) ? container : container.parentNode;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue