fix(core): update
This commit is contained in:
@ -20,7 +20,7 @@ export class SmartBrowser {
|
||||
|
||||
/**
|
||||
* make a screenshot from a page
|
||||
* @param urlArg
|
||||
* @param urlArg
|
||||
*/
|
||||
public async screenshotFromPage(urlArg: string): Promise<interfaces.IScreenShotResult> {
|
||||
const pageId = plugins.smartunique.shortId();
|
||||
@ -41,10 +41,10 @@ export class SmartBrowser {
|
||||
|
||||
/**
|
||||
* evalutes an expression on a page
|
||||
* @param urlArg
|
||||
* @param funcArg
|
||||
* @param urlArg
|
||||
* @param funcArg
|
||||
*/
|
||||
public async evaluateOnPage (urlArg: string, funcArg: () => Promise<any>) {
|
||||
public async evaluateOnPage(urlArg: string, funcArg: () => Promise<any>) {
|
||||
const page = await this.headlessBrowser.newPage();
|
||||
await page.goto(urlArg, {
|
||||
waitUntil: 'networkidle2'
|
||||
@ -63,7 +63,6 @@ export class SmartBrowser {
|
||||
});
|
||||
this.smartpdf = new plugins.smartpdf.SmartPdf();
|
||||
await this.smartpdf.start(this.headlessBrowser);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,2 +1 @@
|
||||
export * from './interfaces.screenshotresult';
|
||||
|
||||
|
Reference in New Issue
Block a user