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:
parent
ae42c586f8
commit
684bac3b22
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user