diff options
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/options.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 86d8e6cf..f1f6c9a1 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -104,9 +104,9 @@ function optionsVersion(options) { '{glossary-list}': '{glossary}' }; - for (let i = 0; i < fields.length; ++i) { + for (const name in fields) { for (const fixup in fixups) { - fields[i] = value.replace(fields[i], fixups[fixup]); + fields[name] = fields[name].replace(fixup, fixups[fixup]); } } }; |