Skip to content
Commit 7056d73b authored by Fabian Vogt's avatar Fabian Vogt
Browse files

Avoid eval by doing the reverse of "stringified function" + eval

Instead of writing a function in a string and evaling it later, just define
the function as usual and call it directly. The string representation necessary
for use with executeScript is acquired by calling .toString() on the function.
parent 8b49cef7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment