@browserless/goto 10.9.0 → 10.9.1

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 +4 -0
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.9.0",
5
+ "version": "10.9.1",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -64,5 +64,5 @@
64
64
  "timeout": "2m",
65
65
  "workerThreads": false
66
66
  },
67
- "gitHead": "d3843b489f96c2b52af786a8740ab2a47d7e7125"
67
+ "gitHead": "be10f67b4113601686e30986e164158ceb6f32be"
68
68
  }
package/src/index.js CHANGED
@@ -264,6 +264,10 @@ module.exports = ({ defaultDevice = 'Macbook Pro 13', timeout: globalTimeout, ..
264
264
  }
265
265
 
266
266
  if (adblock) {
267
+ page.disableAdblock = async () => {
268
+ await engine.disableBlockingInPage(page)
269
+ debug.adblock('disabled')
270
+ }
267
271
  prePromises.push(
268
272
  run({
269
273
  fn: engine.enableBlockingInPage(page),