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

[console] console.error and fixes in jsval_to_string

This commit is contained in:
Witold Filipczyk
2021-09-07 17:31:45 +02:00
parent b8ddbeef0f
commit 5737a4d345
4 changed files with 31 additions and 14 deletions

View File

@@ -81,6 +81,7 @@ static int interpreter_count;
static INIT_LIST_OF(struct string_list_item, allowed_urls);
static INIT_LIST_OF(struct string_list_item, disallowed_urls);
char *console_error_filename;
char *console_log_filename;
char *local_storage_filename;
@@ -542,13 +543,11 @@ init_ecmascript_module(struct module *module)
{
read_url_list();
/* ecmascript console log */
if (elinks_home) {
/* ecmascript console log */
console_log_filename = straconcat(elinks_home, "/console.log", NULL);
}
/* ecmascript local storage db location */
if (elinks_home) {
console_error_filename = straconcat(elinks_home, "/console.err", NULL);
/* ecmascript local storage db location */
local_storage_filename = straconcat(elinks_home, "/elinks_ls.db", NULL);
}
}