Skip to content

Commit d29aa44

Browse files
authored
Update main.js
1 parent 2ceb1be commit d29aa44

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

main.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,13 @@ async function main() {
100100

101101
const context = await chromium.launchPersistentContext(userDataDir, {
102102
headless: false,
103-
channel: 'chrome', // 💡 改成了调用本地真实的 Google Chrome
103+
channel: 'chrome',
104104
args: [
105105
'--disable-blink-features=AutomationControlled',
106106
'--disable-infobars'
107107
],
108108
userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36',
109-
viewport: null,
110-
deviceScaleFactor: 1,
111-
hasTouch: false,
112-
isMobile: false,
109+
viewport: null,
113110
permissions: ['geolocation']
114111
});
115112

0 commit comments

Comments
 (0)