mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Fixed: WebView still visible in chrome://inspect after page is destroyed
Resolves #2053
This commit is contained in:
@ -105,6 +105,13 @@ export class WebView extends common.WebView {
|
||||
this._android.setWebViewClient(this._webViewClient);
|
||||
}
|
||||
|
||||
public _onDetached(force?: boolean) {
|
||||
if (this.android) {
|
||||
this.android.destroy();
|
||||
}
|
||||
super._onDetached(force);
|
||||
}
|
||||
|
||||
public _loadUrl(url: string) {
|
||||
if (!this._android) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user