Skip to content

Instantly share code, notes, and snippets.

@allomov
Created September 24, 2015 12:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allomov/a1fec7721c698df13224 to your computer and use it in GitHub Desktop.
Save allomov/a1fec7721c698df13224 to your computer and use it in GitHub Desktop.
[_webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"function a() { try { s } catch(err) { var errorFlag = 'ERROR'; return errorFlag; } }; a()"]]
[_webView stringByEvaluatingJavaScriptFromString:@"function a() { try { JSON.stringify(require('BatchedBridge').flushedQueue) } catch(err) { return err.message; } }; a()"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment