mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Define do_file before loading hooks.js in case hooks.js wants to use
do_file immediately.
This commit is contained in:
parent
ae42c586f8
commit
684bac3b22
@ -139,10 +139,10 @@ init_smjs(struct module *module)
|
|||||||
|
|
||||||
smjs_init_elinks_object();
|
smjs_init_elinks_object();
|
||||||
|
|
||||||
smjs_load_hooks();
|
|
||||||
|
|
||||||
JS_DefineFunction(smjs_ctx, smjs_global_object, "do_file",
|
JS_DefineFunction(smjs_ctx, smjs_global_object, "do_file",
|
||||||
&smjs_do_file_wrapper, 1, 0);
|
&smjs_do_file_wrapper, 1, 0);
|
||||||
|
|
||||||
|
smjs_load_hooks();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user