Browse Source

Safe guard for removed parent node of the iframe.

master
damencho 6 years ago
parent
commit
bb3a10b0fc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/API/external/external_api.js

+ 1
- 1
modules/API/external/external_api.js View File

561
         this.emit('_willDispose');
561
         this.emit('_willDispose');
562
         this._transport.dispose();
562
         this._transport.dispose();
563
         this.removeAllListeners();
563
         this.removeAllListeners();
564
-        if (this._frame) {
564
+        if (this._frame && this._frame.parentNode) {
565
             this._frame.parentNode.removeChild(this._frame);
565
             this._frame.parentNode.removeChild(this._frame);
566
         }
566
         }
567
     }
567
     }

Loading…
Cancel
Save