Skip to content
Permalink
Browse files
CB-8838 - Disabled commandQueue for WK_WEBVIEW_BINDING. (closes #107)
  • Loading branch information
AlexMouton authored and shazron committed Apr 20, 2015
1 parent c38715d commit b62fa440f6cda747a80d8f8ef3d2c426db092a32
Showing 1 changed file with 5 additions and 5 deletions.
@@ -171,14 +171,14 @@ function iOSExec() {

var command = [callbackId, service, action, actionArgs];

// Stringify and queue the command. We stringify to command now to
// effectively clone the command arguments in case they are mutated before
// the command is executed.
commandQueue.push(JSON.stringify(command));

if (bridgeMode === jsToNativeModes.WK_WEBVIEW_BINDING) {
window.webkit.messageHandlers.cordova.postMessage(command);
} else {
// Stringify and queue the command. We stringify to command now to
// effectively clone the command arguments in case they are mutated before
// the command is executed.
commandQueue.push(JSON.stringify(command));

// If we're in the context of a stringByEvaluatingJavaScriptFromString call,
// then the queue will be flushed when it returns; no need for a poke.
// Also, if there is already a command in the queue, then we've already

0 comments on commit b62fa44

Please sign in to comment.