1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[ecmascript] move visited allowed url to the begining of list.

This commit is contained in:
Witold Filipczyk 2020-12-11 18:51:53 +01:00
parent de793bbf73
commit 867cc8a9c6

View File

@ -134,6 +134,7 @@ get_ecmascript_enable(struct ecmascript_interpreter *interpreter)
}
if (!is_prefix(string->source, url, string->length)) {
mem_free(url);
move_to_top_of_list(allowed_urls, item);
return 1;
}
}