mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 02:34:18 +00:00
better the other way
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10473 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9b98c2d512
commit
9de7588924
@ -3508,7 +3508,7 @@ static void js_parse_and_execute(switch_core_session_t *session, const char *inp
|
|||||||
|
|
||||||
/* Emaculent conception of session object into the script if one is available */
|
/* Emaculent conception of session object into the script if one is available */
|
||||||
if (!(session && new_js_session(cx, javascript_global_object, session, &jss, "session", flags))) {
|
if (!(session && new_js_session(cx, javascript_global_object, session, &jss, "session", flags))) {
|
||||||
switch_snprintf(buf, sizeof(buf), "~var session = new Object();");
|
switch_snprintf(buf, sizeof(buf), "~var session = false;");
|
||||||
eval_some_js(buf, cx, javascript_global_object, &rval);
|
eval_some_js(buf, cx, javascript_global_object, &rval);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user