You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/02/11 15:09:38 UTC
[GitHub] kogutu opened a new issue #423: Problem with function close()
kogutu opened a new issue #423: Problem with function close()
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/423
Hello
I have problem with inapp, I want close browser after when event fire. I try use close() but function not working. What Im doing wrong?
This is my code:
const browser = this.inAppBrowser.create(url, '_blank', options);
```
browser.on("loadstart")
.subscribe(
(e) => {
let u = e.url
if(u.includes("search")) {
alert("Close");
browser.close();
}
},
err => {
console.log("InAppBrowser Loadstop Event Error: " + err);
});
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org