diff options
author | Wojtek Kosior <koszko@koszko.org> | 2021-08-27 18:01:34 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2021-08-27 18:01:34 +0200 |
commit | 826b4fd80a288f13841b6f6d56cc38e2f43bbc03 (patch) | |
tree | 1b28d79d88817b19ca4cf6a229cfee9143531dc3 /html/options_main.js | |
parent | 53891495d6f6b901da3058b1227d326313d922e9 (diff) | |
download | browser-extension-826b4fd80a288f13841b6f6d56cc38e2f43bbc03.tar.gz browser-extension-826b4fd80a288f13841b6f6d56cc38e2f43bbc03.zip |
start using `<template>' tag
Diffstat (limited to 'html/options_main.js')
-rw-r--r-- | html/options_main.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/html/options_main.js b/html/options_main.js index 830c860..825728e 100644 --- a/html/options_main.js +++ b/html/options_main.js @@ -13,6 +13,7 @@ * IMPORT list_prefixes * IMPORT nice_name * IMPORT parse_json_with_schema + * IMPORT get_template * IMPORT by_id * IMPORT matchers * IMPORT get_import_frame @@ -21,10 +22,10 @@ var storage; -const item_li_template = by_id("item_li_template"); -const bag_component_li_template = by_id("bag_component_li_template"); -const chbx_component_li_template = by_id("chbx_component_li_template"); -const radio_component_li_template = by_id("radio_component_li_template"); +const item_li_template = get_template("item_li"); +const bag_component_li_template = get_template("bag_component_li"); +const chbx_component_li_template = get_template("chbx_component_li"); +const radio_component_li_template = get_template("radio_component_li"); /* Make sure they are later cloned without id. */ item_li_template.removeAttribute("id"); bag_component_li_template.removeAttribute("id"); |