! * \brief Injects the specified JavaScript. */
| 449 | * \brief Injects the specified JavaScript. |
| 450 | */ |
| 451 | void 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. |
nothing calls this directly
no outgoing calls
no test coverage detected