1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Define do_file before loading hooks.js in case hooks.js wants to use

do_file immediately.
This commit is contained in:
Miciah Dashiel Butler Masters 2005-12-29 14:24:00 +00:00 committed by Miciah Dashiel Butler Masters
parent ae42c586f8
commit 684bac3b22

View File

@ -139,10 +139,10 @@ init_smjs(struct module *module)
smjs_init_elinks_object();
smjs_load_hooks();
JS_DefineFunction(smjs_ctx, smjs_global_object, "do_file",
&smjs_do_file_wrapper, 1, 0);
smjs_load_hooks();
}
void