Phantom's WebPage.injectJs should return boolean

This patch fixes Phantom Shim WebPage.injectJs to
return boolean.
This commit is contained in:
Andrey Lushnikov 2017-05-13 13:45:33 -07:00
parent bdf895bed6
commit e0a9cd5c08

View File

@ -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;
}
/**