Resolving PR reported issues.

This commit is contained in:
Nasik
2019-01-13 23:18:00 +05:30
parent 20a3ba3a8e
commit cdd6f3f7c5
2 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -1276,7 +1276,7 @@ export interface PageEventObj {
* Emitted when the initial HTML document has been completely loaded and parsed,
* without waiting for stylesheets, images, and subframes to finish loading.
*/
domcontentloaded: undefined;
domcontentloaded: void;
/** Emitted when the page crashes. */
error: Error;
/** Emitted when a frame is attached. */
-6
View File
@@ -512,10 +512,4 @@ puppeteer.launch().then(async browser => {
console.log('dom changed');
});
});
try {
await page.goto('https://www.google.com');
} catch (e) {
console.log("DOM CONTENT LOADED EVENT ERROR", e);
}
});