summaryrefslogtreecommitdiff
path: root/html/install.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/install.js')
-rw-r--r--html/install.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/html/install.js b/html/install.js
index df63626..2a72662 100644
--- a/html/install.js
+++ b/html/install.js
@@ -382,15 +382,14 @@ function InstallView(tab_id, on_view_show, on_view_hide) {
if (files !== undefined) {
const data = {file: {sha256: files}};
- const names = [["mappings", "mapping"], ["resources", "resource"]];
- for (const [set_name, type] of names) {
+ for (const type of ["resource", "mapping"]) {
const set = {};
for (const def of item_defs.filter(def => def.type === type))
set[def.identifier] = {[version_string(def.version)]: def};
- data[set_name] = set;
+ data[type] = set;
}
try {