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/21 12:40:39 UTC

[GitHub] pmurpmur commented on issue #421: executeScript not working in ionic 3

pmurpmur commented on issue #421: executeScript not working in ionic 3
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/421#issuecomment-465985540
 
 
   I was able to circumvent this issue by not using the Ionic-Native library and interfacing with Cordova directly. In other words, try code similar to this:
   
   ```
   const browser = cordova.InAppBrowser.open('https://example.com, '_blank');
   
   browser.addEventListener('loadstop', () => {
     setTimeout(() => {
       browser.executeScript({ 
         code: 'document.body.innerHTML'
       }, (data) => {
         console.log('script')
       });
     }, 2000);
   });
   ```

----------------------------------------------------------------
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