Skip to content

Commit 370ce50

Browse files
committed
Don't block xhr requests by default
In the case of Adobe, the request need to be done to verify the load of the page.
1 parent 907bdc4 commit 370ce50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = launchOpts => {
7373
const createGetContent = evaluate => async (url, opts = {}) => {
7474
const {
7575
abortTrackers = true,
76-
abortTypes = ['image', 'media', 'stylesheet', 'font', 'xhr'],
76+
abortTypes = ['image', 'media', 'stylesheet', 'font'],
7777
waitFor = 0,
7878
waitUntil = WAIT_UNTIL,
7979
userAgent,

src/is-tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const isTrackingDomain = require('is-tracking-domain')
44

5-
const WHITELIST_RESOURCE_DOMAINS = ['twimg.com']
5+
const WHITELIST_RESOURCE_DOMAINS = ['twimg.com', 'adobe.com']
66

77
module.exports = domain =>
88
isTrackingDomain(domain, { exclude: WHITELIST_RESOURCE_DOMAINS })

0 commit comments

Comments
 (0)