diff --git a/spiders/base.js b/spiders/base.js index cc6ee39..a113cbb 100644 --- a/spiders/base.js +++ b/spiders/base.js @@ -90,7 +90,7 @@ class BaseSpider { this.editorSel = this.config.editorSel // 隐藏navigator - await this.page.evaluate(() => { + await this.page.evaluateOnNewDocument(() => { Object.defineProperty(navigator, 'webdriver', { get: () => false })