Phantom's WebPage.injectJs should return boolean
This patch fixes Phantom Shim WebPage.injectJs to return boolean.
This commit is contained in:
parent
bdf895bed6
commit
e0a9cd5c08
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user