aboutsummaryrefslogtreecommitdiff
path: root/html/display-panel.js
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-08-27 18:01:34 +0200
committerWojtek Kosior <koszko@koszko.org>2021-08-27 18:01:34 +0200
commit826b4fd80a288f13841b6f6d56cc38e2f43bbc03 (patch)
tree1b28d79d88817b19ca4cf6a229cfee9143531dc3 /html/display-panel.js
parent53891495d6f6b901da3058b1227d326313d922e9 (diff)
downloadbrowser-extension-826b4fd80a288f13841b6f6d56cc38e2f43bbc03.tar.gz
browser-extension-826b4fd80a288f13841b6f6d56cc38e2f43bbc03.zip
start using `<template>' tag
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;