mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
CB-3932 Remove baseUrl comment in handleDestroy method made redundant by CB-3766
This commit is contained in:
parent
4ec3d6d064
commit
3a14017729
@ -805,7 +805,6 @@ public class CordovaWebView extends WebView {
|
|||||||
public void handleDestroy()
|
public void handleDestroy()
|
||||||
{
|
{
|
||||||
// Send destroy event to JavaScript
|
// Send destroy event to JavaScript
|
||||||
// Since baseUrl is set in loadUrlIntoView, if user hit Back button before loadUrl was called, we'll get an NPE on baseUrl (CB-2458)
|
|
||||||
this.loadUrl("javascript:try{cordova.require('cordova/channel').onDestroy.fire();}catch(e){console.log('exception firing destroy event from native');};");
|
this.loadUrl("javascript:try{cordova.require('cordova/channel').onDestroy.fire();}catch(e){console.log('exception firing destroy event from native');};");
|
||||||
|
|
||||||
// Load blank page so that JavaScript onunload is called
|
// Load blank page so that JavaScript onunload is called
|
||||||
|
Loading…
Reference in New Issue
Block a user