mirror of
https://github.com/rkd77/elinks.git
synced 2025-09-21 19:46:23 -04:00
[smjs local storage] spider monkey local storage
This commit is contained in:
@@ -77,6 +77,10 @@ static INIT_LIST_OF(struct string_list_item, allowed_urls);
|
||||
|
||||
char *console_log_filename;
|
||||
|
||||
char *local_storage_filename;
|
||||
|
||||
int local_storage_ready;
|
||||
|
||||
static int
|
||||
is_prefix(char *prefix, char *url, int dl)
|
||||
{
|
||||
@@ -456,9 +460,15 @@ init_ecmascript_module(struct module *module)
|
||||
{
|
||||
read_url_list();
|
||||
|
||||
/* ecmascript console log */
|
||||
if (elinks_home) {
|
||||
console_log_filename = straconcat(elinks_home, "/console.log", NULL);
|
||||
}
|
||||
|
||||
/* ecmascript local storage db location */
|
||||
if (elinks_home) {
|
||||
local_storage_filename = straconcat(elinks_home, "/elinks_ls.db", NULL);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -466,6 +476,7 @@ done_ecmascript_module(struct module *module)
|
||||
{
|
||||
free_string_list(&allowed_urls);
|
||||
mem_free_if(console_log_filename);
|
||||
mem_free_if(local_storage_filename);
|
||||
}
|
||||
|
||||
static struct module *ecmascript_modules[] = {
|
||||
|
Reference in New Issue
Block a user