1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-02 14:49:16 +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:
Fred Chasen 2021-10-20 20:18:51 -07:00 committed by GitHub
commit e43c12832b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;