diff --git a/src/phantom.cpp b/src/phantom.cpp index 30bd7bbd..584be2d6 100644 --- a/src/phantom.cpp +++ b/src/phantom.cpp @@ -215,7 +215,8 @@ QString Phantom::loadModuleSource(const QString &name) return moduleSource; } -bool Phantom::injectJs(const QString &jsFilePath) { +bool Phantom::injectJs(const QString &jsFilePath) +{ return Utils::injectJsInFrame(jsFilePath, libraryPath(), m_page->mainFrame()); }