You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joseph Carroll (JIRA)" <ji...@apache.org> on 2016/06/30 23:15:10 UTC
[jira] [Created] (CB-11520) executeScript does not return value on
iOS with WKWebView
Joseph Carroll created CB-11520:
-----------------------------------
Summary: executeScript does not return value on iOS with WKWebView
Key: CB-11520
URL: https://issues.apache.org/jira/browse/CB-11520
Project: Apache Cordova
Issue Type: Bug
Components: iOS, Plugin InAppBrowser, Plugin WKWebViewEngine
Reporter: Joseph Carroll
Assignee: Shazron Abdullah
The following code does not return any value from the `executeScript`
{code}
ref.addEventListener('loadstop', function() {
var interval = setInterval(function() {
ref.executeScript({
code: "$ads.secret.parseToken();"
},
function(data) {
if (data) {
var secretElement = document.getElementById('secret');
secretElement.innerText = JSON.stringify(arguments);
ref.close();
clearInterval(interval);
}
}
);
}, 500);
});
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org