Project

General

Profile

« Previous | Next » 

Revision 53837634

Added by koszko about 2 years ago

enable whitelisting of `file://' protocol\n\nThis commit additionally also changes the semantics of triple asterisk wildcard in URL path.

View differences:

html/display-panel.js
20 20
 * IMPORT TYPE_PREFIX
21 21
 * IMPORT nice_name
22 22
 * IMPORT open_in_settings
23
 * IMPORT for_each_possible_pattern
23
 * IMPORT each_url_pattern
24 24
 * IMPORT by_id
25 25
 * IMPORT clone_template
26 26
 * IMPORTS_END
......
127 127

  
128 128
function populate_possible_patterns_list(url)
129 129
{
130
    for_each_possible_pattern(url, add_pattern_to_list);
130
    for (const pattern of each_url_pattern(url))
131
	add_pattern_to_list(pattern);
131 132

  
132 133
    for (const [pattern, settings] of query_all(storage, url)) {
133 134
	set_pattern_li_button_text(ensure_pattern_exists(pattern),

Also available in: Unified diff