Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
dev-hyperweb@3252d5c

maybe not need onDisconnected event handle in this file
  • Loading branch information
dev-hyperweb committed Jul 23, 2021
1 parent 468d064 commit 71e5c05
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'

const { PuppeteerExtraPlugin } = require('puppeteer-extra-plugin')
const debug = require('debug')('puppeteer-extra-plugin:user-agent-override')

/**
* Fixes the UserAgent info (composed of UA string, Accept-Language, Platform, and UA hints).
Expand Down Expand Up @@ -62,9 +61,6 @@ class Plugin extends PuppeteerExtraPlugin {
maskLinux: true
}
}
async onDisconnected() {
debug('onDisconnected')
}

async onPageCreated(page) {
// Determine the full user agent string, strip the "Headless" part
Expand Down

0 comments on commit 71e5c05

Please sign in to comment.