docs: notifyOnNewTab description

This commit is contained in:
karishmas6
2024-06-08 00:33:54 +05:30
parent 7e66cd81b6
commit bb87c775bf

View File

@@ -501,7 +501,12 @@ export class WorkflowGenerator {
}
}
/**
* Notifies the client about the new tab if popped-up
* @param page The page to be used for obtaining data.
* @param pageIndex The index of the page.
* @returns void
*/
public notifyOnNewTab = (page: Page, pageIndex: number) => {
if (this.socket) {
page.on('close', () => {