diff --git a/phantomjs/WebPage.js b/phantomjs/WebPage.js index dca116eabce..4acae377377 100644 --- a/phantomjs/WebPage.js +++ b/phantomjs/WebPage.js @@ -120,8 +120,9 @@ class WebPage { if (!fs.existsSync(filePath)) filePath = path.resolve(this.libraryPath, filePath); if (!fs.existsSync(filePath)) - return; + return false; await(this._page.injectFile(filePath)); + return true; } /**