@browserless/goto 10.1.17 → 10.1.18
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/package.json +2 -2
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@browserless/goto",
|
|
3
3
|
"description": "Go to a page aborting unnecessary requests",
|
|
4
4
|
"homepage": "https://browserless.js.org/#/?id=gotopage-options",
|
|
5
|
-
"version": "10.1.
|
|
5
|
+
"version": "10.1.18",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"timeout": "2m",
|
|
62
62
|
"workerThreads": false
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "f8e21e951876d99efcecf7415959aa13488e9c7e",
|
|
65
65
|
"scripts": {
|
|
66
66
|
"postinstall": "node scripts/postinstall",
|
|
67
67
|
"test": "ava"
|
package/src/index.js
CHANGED
|
@@ -281,7 +281,7 @@ module.exports = ({ defaultDevice = 'Macbook Pro 13', timeout: globalTimeout, ..
|
|
|
281
281
|
)
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
const device = getDevice({ headers, ...args })
|
|
284
|
+
const device = getDevice({ headers, ...args, device: args.device ?? defaultDevice })
|
|
285
285
|
|
|
286
286
|
if (device.userAgent && !headers['user-agent']) {
|
|
287
287
|
headers['user-agent'] = device.userAgent
|