Skip to content

Commit 120ea25

Browse files
committed
Tweaks
1 parent 35f9f9f commit 120ea25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const createTempFile = require('create-temp-file2')
44
const isEmpty = require('lodash.isempty')
55
const puppeteer = require('puppeteer')
66

7-
const debugHtml = require('debug')('browserless:html')
7+
const debug = require('debug')('browserless')
88

99
const { devices, getDevice } = require('./devices')
1010

@@ -23,7 +23,7 @@ module.exports = launchOpts => {
2323
const resourceType = req.resourceType()
2424
const action = abortTypes.includes(resourceType) ? 'abort' : 'continue'
2525

26-
debugHtml(action, resourceType, req.url())
26+
debug(action, resourceType, req.url())
2727
return req[action]()
2828
})
2929

@@ -33,7 +33,7 @@ module.exports = launchOpts => {
3333

3434
const text = async (url, opts = {}) => {
3535
const {
36-
abortTypes = ['image', 'media', 'stylesheet', 'font', 'xhr'],
36+
abortTypes = ['image', 'media', 'stylesheet', 'font'],
3737
waitFor = 0,
3838
waitUntil = WAIT_UNTIL,
3939
...args
@@ -49,7 +49,7 @@ module.exports = launchOpts => {
4949

5050
const html = async (url, opts = {}) => {
5151
const {
52-
abortTypes = ['image', 'media', 'stylesheet', 'font', 'xhr'],
52+
abortTypes = ['image', 'media', 'stylesheet', 'font'],
5353
waitFor = 0,
5454
waitUntil = WAIT_UNTIL,
5555
...args

0 commit comments

Comments
 (0)