summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-18 10:08:34 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-18 10:08:34 +0300
commit2cbbcd242e3eeeb4d7a6167d7917d53bd9424551 (patch)
tree51084d8c00ff7cbd035906c39c749a4248b9db7e /ext/bg/js
parent552185ffb4c79228d3a6cc9391910f03449a3418 (diff)
fixups: remove useless check
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/options.js13
1 files changed, 5 insertions, 8 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 00e1b5d7..c56c1945 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -269,14 +269,11 @@ function optionsVersion(options) {
}
options.general.compactTags = false;
options.general.compactGlossaries = false;
- if (options.anki.fieldTemplates !== optionsFieldTemplates()) {
- options.anki.fieldTemplates = '{{#if merge}}\n' +
- optionsFieldTemplates() +
- '\n{{else}}\n' +
- options.anki.fieldTemplates +
- '\n{{/if}}';
-
- }
+ options.anki.fieldTemplates = '{{#if merge}}\n' +
+ optionsFieldTemplates() +
+ '\n{{else}}\n' +
+ options.anki.fieldTemplates +
+ '\n{{/if}}';
}
];