-
Notifications
You must be signed in to change notification settings - Fork 267
Description
close() { var _a; if (this._frame) { if (this._frame.parentNode) { this._frame.addEventListener("load", (ev) => { var _a2; const frame = ev.target; // Give the browser a moment to complete the load before removing the frame setTimeout(() => { (_a2 = frame.parentNode) == null ? void 0 : _a2.removeChild(frame); void this._abort.raise(new Error("IFrame removed from DOM")); }) // (_a2 = frame.parentNode) == null ? void 0 : _a2.removeChild(frame); // void this._abort.raise(new Error("IFrame removed from DOM")); }, true); (_a = this._frame.contentWindow) == null ? void 0 : _a.location.replace("about:blank"); } this._frame = null; } this._window = null; }
In some webviews, not using setTimeout can lead to out-of-memory (OOM) issues. I hope you can optimize it.
Thank you