diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-15 13:18:59 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-15 13:18:59 +0100 |
commit | 92fc67cfa135526cef75311c3ee1a14e248c3060 (patch) | |
tree | 139aa953f29df525433001cd3b5487cb8df8f91a /html/install.js | |
parent | cf838016b70bc55d8fb19a10b4deb580289e3769 (diff) | |
download | browser-extension-92fc67cfa135526cef75311c3ee1a14e248c3060.tar.gz browser-extension-92fc67cfa135526cef75311c3ee1a14e248c3060.zip |
change store names and data keys to singular
Diffstat (limited to 'html/install.js')
-rw-r--r-- | html/install.js | 5 |
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 { |