Skip to content

Commit 98c108b

Browse files
att
1 parent 44cb719 commit 98c108b

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

src/session/constructor.lua

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,22 @@ Session.newSession = function (private_server_props,props)
1010
selfobject.meta_method_extends(MetaSession)
1111
selfobject.public_method_extends(PublicSession)
1212
local args = props.args
13-
14-
args = {
15-
"--disable-blink-features=AutomationControlled",
16-
"--disable-infobars",
17-
"--disable-notifications",
18-
"--disable-popup-blocking",
19-
"--disable-extensions",
20-
"--no-sandbox",
21-
"--ignore-certificate-errors",
22-
"--window-size=1920,1080",
23-
"--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
24-
}
25-
13+
if not args then
14+
args = {
15+
"--disable-blink-features=AutomationControlled",
16+
"--disable-infobars",
17+
"--disable-notifications",
18+
"--disable-popup-blocking",
19+
"--disable-extensions",
20+
"--no-sandbox",
21+
"--ignore-certificate-errors",
22+
"--window-size=1920,1080",
23+
"--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
24+
}
25+
end
2626

2727
local use_automation_extension = props.use_automation_extension or false
28-
print("caminho binario",props.binary_location)
29-
28+
3029
local result = selfobject.private.fetch({
3130
url=selfobject.private.url.."/session",
3231
method = "POST",

0 commit comments

Comments
 (0)