Skip to content
Snippets Groups Projects
Commit 533275a4 authored by deuce's avatar deuce
Browse files

More OperationCallback hackery.

parent f9df1709
No related branches found
No related tags found
No related merge requests found
......@@ -1244,7 +1244,11 @@ static void js_static_service_thread(void* arg)
val = BOOLEAN_TO_JSVAL(JS_FALSE);
JS_SetProperty(js_cx, js_glob, "logged_in", &val);
#ifdef USE_JS_OPERATION_CALLBACK
JS_SetOperationCallback(js_cx, js_OperationCallback);
#else
JS_SetBranchCallback(js_cx, js_BranchCallback);
#endif
if((js_script=JS_CompileFile(js_cx, js_glob, spath))==NULL) {
lprintf(LOG_ERR,"%04d !JavaScript FAILED to compile script (%s)",service->socket,spath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment