@letsscrapedata/controller 0.0.23 → 0.0.24
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 +6 -0
- package/dist/index.js +6 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1481,6 +1481,9 @@ var PlaywrightBrowser = class extends import_node_events3.default {
|
|
|
1481
1481
|
return null;
|
|
1482
1482
|
}
|
|
1483
1483
|
const browserContextOptions = {};
|
|
1484
|
+
if (this.#options.args?.includes("--start-maximized")) {
|
|
1485
|
+
browserContextOptions.viewport = null;
|
|
1486
|
+
}
|
|
1484
1487
|
const proxy = options?.proxy ? Object.assign({}, options.proxy) : this.#proxy;
|
|
1485
1488
|
if (proxy) {
|
|
1486
1489
|
const { server, username, password } = proxy;
|
|
@@ -17285,6 +17288,9 @@ var LsdBrowserController = class _LsdBrowserController {
|
|
|
17285
17288
|
} else if (browserControllerType === "puppeteer") {
|
|
17286
17289
|
const product = this.#puppeteerProduct(browserType);
|
|
17287
17290
|
const launchOptions = { headless, timeout, product };
|
|
17291
|
+
if (actOptions.args?.includes("--start-maximized")) {
|
|
17292
|
+
launchOptions.defaultViewport = null;
|
|
17293
|
+
}
|
|
17288
17294
|
if (executablePath) {
|
|
17289
17295
|
launchOptions.executablePath = executablePath;
|
|
17290
17296
|
}
|
package/dist/index.js
CHANGED
|
@@ -1461,6 +1461,9 @@ var PlaywrightBrowser = class extends EventEmitter3 {
|
|
|
1461
1461
|
return null;
|
|
1462
1462
|
}
|
|
1463
1463
|
const browserContextOptions = {};
|
|
1464
|
+
if (this.#options.args?.includes("--start-maximized")) {
|
|
1465
|
+
browserContextOptions.viewport = null;
|
|
1466
|
+
}
|
|
1464
1467
|
const proxy = options?.proxy ? Object.assign({}, options.proxy) : this.#proxy;
|
|
1465
1468
|
if (proxy) {
|
|
1466
1469
|
const { server, username, password } = proxy;
|
|
@@ -17265,6 +17268,9 @@ var LsdBrowserController = class _LsdBrowserController {
|
|
|
17265
17268
|
} else if (browserControllerType === "puppeteer") {
|
|
17266
17269
|
const product = this.#puppeteerProduct(browserType);
|
|
17267
17270
|
const launchOptions = { headless, timeout, product };
|
|
17271
|
+
if (actOptions.args?.includes("--start-maximized")) {
|
|
17272
|
+
launchOptions.defaultViewport = null;
|
|
17273
|
+
}
|
|
17268
17274
|
if (executablePath) {
|
|
17269
17275
|
launchOptions.executablePath = executablePath;
|
|
17270
17276
|
}
|
package/package.json
CHANGED