Skip to content

Commit defe14c

Browse files
att
1 parent 883d187 commit defe14c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/element/retrivers.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ PublicElement.execute_script = function(public, private, script, ...)
6868
-- Insert the element reference as the first argument (arguments[0] in JavaScript)
6969
local element_ref = {["element-6066-11e4-a52e-4f735466cecf"] = private.element_id}
7070
table.insert(args, 1, element_ref)
71-
72-
local response = private.fetch({
71+
local requisition_props = {
7372
method = "POST",
7473
http_version = "1.1",
7574
url = private.url .. "/session/" .. private.session_id .. "/execute/sync",
7675
body = {
7776
script = script,
7877
args = args
7978
}
80-
})
81-
79+
}
80+
local response = private.fetch(requisition_props)
81+
8282
if response.status_code == 200 then
8383
local body = response.read_body_json()
8484
if body then

0 commit comments

Comments
 (0)