@datacamp/learn-vm-scripts 1.2.7-rc.0 → 1.2.8-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -366478,8 +366478,10 @@ async function setupPuppeteerPage({
|
|
|
366478
366478
|
userDataDir
|
|
366479
366479
|
});
|
|
366480
366480
|
const pages = await browser.pages();
|
|
366481
|
-
|
|
366482
|
-
|
|
366481
|
+
if (pages[0] !== void 0) {
|
|
366482
|
+
return pages[0];
|
|
366483
|
+
}
|
|
366484
|
+
return browser.newPage();
|
|
366483
366485
|
}
|
|
366484
366486
|
|
|
366485
366487
|
// src/utils.ts
|
package/package.json
CHANGED