gologin 2.0.21 → 2.0.22

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/gologin.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gologin",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "A high-level API to control Orbita browser over GoLogin API",
5
5
  "main": "./src/gologin.js",
6
6
  "repository": {
package/src/gologin.js CHANGED
@@ -59,6 +59,7 @@ export class GoLogin {
59
59
  this.waitWebsocket = false;
60
60
  }
61
61
 
62
+ this.isCloudHeadless = options.isCloudHeadless || true;
62
63
  this.isNewCloudBrowser = true;
63
64
  if (options.isNewCloudBrowser === false) {
64
65
  this.isNewCloudBrowser = false;
@@ -1461,7 +1462,7 @@ export class GoLogin {
1461
1462
 
1462
1463
  const profileResponse = await requests.post(`${API_URL}/browser/${this.profile_id}/web`, {
1463
1464
  headers: { 'Authorization': `Bearer ${this.access_token}` },
1464
- json: { isNewCloudBrowser: this.isNewCloudBrowser },
1465
+ json: { isNewCloudBrowser: this.isNewCloudBrowser, isHeadless: this.isCloudHeadless },
1465
1466
  });
1466
1467
 
1467
1468
  debug('profileResponse', profileResponse.statusCode, profileResponse.body);