mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Merge pull request #1182 from Upstatement/remove-pane-if-iframe-unloads
Remove pane when iframe is destroyed to force redraw on render
This commit is contained in:
commit
e43c12832b
1 changed files with 5 additions and 0 deletions
|
@ -823,6 +823,11 @@ class IframeView {
|
|||
this.stopExpanding = true;
|
||||
this.element.removeChild(this.iframe);
|
||||
|
||||
if (this.pane) {
|
||||
this.pane.element.remove();
|
||||
this.pane = undefined;
|
||||
}
|
||||
|
||||
this.iframe = undefined;
|
||||
this.contents = undefined;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue