0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-09-21 19:46:23 -04:00

[xhr] Added bool option ecmascript.allow_xhr_file

This commit is contained in:
Witold Filipczyk
2022-10-31 20:25:32 +01:00
parent 5e802064c9
commit feca5c4b80
5 changed files with 24 additions and 20 deletions

View File

@@ -90,6 +90,10 @@ static union option_info ecmascript_options[] = {
"block_window_opening", OPT_ZERO, 0,
N_("Whether to disallow scripts to open new windows or tabs.")),
INIT_OPT_BOOL("ecmascript", N_("Allow XHR requests to local files"),
"allow_xhr_file", OPT_ZERO, 0,
N_("Whether to allow XHR requests to local files.")),
NULL_OPTION_INFO,
};