Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
fixups: remove redundant options, use template str
Browse files Browse the repository at this point in the history
  • Loading branch information
siikamiika committed Oct 24, 2017
1 parent 27a56dc commit c9b1dd5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ext/bg/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit c9b1dd5

Please sign in to comment.