MCPcopy Create free account
hub / github.com/Tracktion/choc / addInitScript

Function addInitScript

choc/gui/choc_WebView.h:473–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471 }
472
473 bool addInitScript (const std::string& js)
474 {
475 if (manager != nullptr)
476 {
477 webkit_user_content_manager_add_script (manager, webkit_user_script_new (js.c_str(),
478 WEBKIT_USER_CONTENT_INJECT_TOP_FRAME,
479 WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_START,
480 nullptr, nullptr));
481 return true;
482 }
483
484 return false;
485 }
486
487 void invokeCallback (WebKitJavascriptResult* r)
488 {

Callers 1

bindMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected