jdpsbh opened a new issue #726:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/726
Hello,
executeScript is not working when Inappbrowser hidden option is set
to yes. Is this a normal behavior?
let ceiLogin = true;
let ceiNavegador;
ceiNavegador = cordova.InAppBrowser.open(url, '_blank', 'hidden=yes');
ceiNavegador.addEventListener('loadstop', ceiLoadStopCallBack);
function ceiLoadStopCallBack(){
if(ceiLogin == true){
ceiLogin = false;
ceiNavegador.executeScript({ code: 'window.location =
"here_goes_my_new_url";' });
}else{
alert("This is the login page");
}
}
The alert "This is the login page" is not firing, meaning, I guess, the code
window.location is not executing.
But, if i set hidden to NO, the alert is firing.
ceiNavegador =
cordova.InAppBrowser.open(url, '_blank', 'hidden=no';
Thanks!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]