"code": json.dumps(extract_js(script)),
}
p = subprocess.Popen(
- "js",
+ "nodejs",
shell=True,
close_fds=True,
stdin=subprocess.PIPE,
var sandbox = {
window: {
- location: {}
+ location: {},
+ history: {
+ pushState: function(){}
+ }
},
document: {},
navigator: {},