MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / injectJavaScript

Method injectJavaScript

syncthingwidgets/webview/webpage.cpp:451–458  ·  view source on GitHub ↗

! * \brief Injects the specified JavaScript. */

Source from the content-addressed store, hash-verified

449 * \brief Injects the specified JavaScript.
450 */
451void WebPage::injectJavaScript(const QString &scriptSource)
452{
453#ifdef SYNCTHINGWIDGETS_USE_WEBENGINE
454 runJavaScript(scriptSource);
455#else // SYNCTHINGWIDGETS_USE_WEBKIT
456 mainFrame()->evaluateJavaScript(scriptSource);
457#endif
458}
459
460/*!
461 * \brief Injects the JavaScript code required for additional features.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected