|
@@ -66,7 +66,9 @@ class DTCookiePool(PageCookiePool):
|
|
|
contentType: "text/html",
|
|
|
});
|
|
|
window = dom.window;
|
|
|
- document = window.document;''' + js_func
|
|
|
+ document = window.document;
|
|
|
+ location = window.location;
|
|
|
+ ''' + js_func
|
|
|
ctx = execjs.compile(js_func)
|
|
|
# with open('ex_js.js', 'w+', encoding='utf-8') as f:
|
|
|
# f.write(js_func)
|