aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-24 23:01:07 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-24 23:01:07 +0300
commitc9b1dd56dc2f878edcff7448e9366bf1dbc59829 (patch)
tree7812b6f850d29d0ad53177a75b583d86c338b8ac
parent27a56dc236d8f05508160c28d9115baad26453d2 (diff)
fixups: remove redundant options, use template str
-rw-r--r--ext/bg/js/options.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 4d18c166..9f1414ad 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -277,14 +277,14 @@ function optionsVersion(options) {
} else {
options.general.resultOutputMode = 'split';
}
- options.general.compactTags = false;
- options.general.compactGlossaries = false;
if (utilStringHashCode(options.anki.fieldTemplates) !== -805327496) { // a3c8508031a1073629803d0616a2ee416cd3cccc
- options.anki.fieldTemplates = '{{#if merge}}\n' +
- optionsFieldTemplates() +
- '\n{{else}}\n' +
- options.anki.fieldTemplates +
- '\n{{/if}}';
+ options.anki.fieldTemplates = `
+{{#if merge}}
+${optionsFieldTemplates()}
+{{else}}
+${options.anki.fieldTemplates}
+{{/if}}
+`.trim();
} else {
options.anki.fieldTemplates = optionsFieldTemplates();
}