atconnect: use new atjsparse syntax
This commit is contained in:
parent
3fa1db2edb
commit
c02d3fed3e
1 changed files with 3 additions and 2 deletions
|
@ -121,8 +121,9 @@ class AternosConnect:
|
||||||
if len(js_code) > 1:
|
if len(js_code) > 1:
|
||||||
token_func = js_code[1]
|
token_func = js_code[1]
|
||||||
|
|
||||||
ctx = atjsparse.exec_js(token_func)
|
js = atjsparse.get_interpreter()
|
||||||
self.token = ctx.window['AJAX_TOKEN']
|
js.exec_js(token_func)
|
||||||
|
self.token = js['AJAX_TOKEN']
|
||||||
|
|
||||||
except (IndexError, TypeError) as err:
|
except (IndexError, TypeError) as err:
|
||||||
|
|
||||||
|
|
Reference in a new issue