aboutsummaryrefslogtreecommitdiff
path: root/html/display-panel.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/display-panel.js')
-rw-r--r--html/display-panel.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/html/display-panel.js b/html/display-panel.js
index bc190ac..54b5578 100644
--- a/html/display-panel.js
+++ b/html/display-panel.js
@@ -22,6 +22,7 @@
* IMPORT open_in_settings
* IMPORT each_url_pattern
* IMPORT by_id
+ * IMPORT get_template
* IMPORT clone_template
* IMPORTS_END
*/
@@ -73,7 +74,7 @@ async function show_page_activity_info()
}
const possible_patterns_ul = by_id("possible_patterns");
-const pattern_li_template = by_id("pattern_li_template");
+const pattern_li_template = get_template("pattern_li");
pattern_li_template.removeAttribute("id");
const known_patterns = new Map();
@@ -487,7 +488,7 @@ function show_query_successful_result(result_item, repo_url, result)
set_appended(result_item, ul);
for (const match of result) {
- const entry_object = clone_template("query_match_li_template");
+ const entry_object = clone_template("query_match_li");
entry_object.pattern.textContent = match.pattern;