aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/options.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 11dab7c2..00e1b5d7 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -269,6 +269,14 @@ 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}}';
+
+ }
}
];