browserless 9.2.12 → 9.2.13

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 +2 -2
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "browserless",
3
3
  "description": "the headless Chrome/Chromium performance driver for Node.js",
4
4
  "homepage": "https://browserless.js.org",
5
- "version": "9.2.12",
5
+ "version": "9.2.13",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -62,5 +62,5 @@
62
62
  "timeout": "2m",
63
63
  "verbose": true
64
64
  },
65
- "gitHead": "41694a12fcd814b38c5a5473a1197e34ece7eac6"
65
+ "gitHead": "5e3fa535f0c90777bce6354a1db6f292881e2562"
66
66
  }
package/src/index.js CHANGED
@@ -98,7 +98,7 @@ module.exports = ({ timeout: globalTimeout = 30000, ...launchOpts } = {}) => {
98
98
  }
99
99
 
100
100
  const closePage = async page => {
101
- if (!page.isClosed()) {
101
+ if (page && !page.isClosed()) {
102
102
  debug('closePage', await pReflect(page.close()))
103
103
  }
104
104
  }