summaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-15 00:07:54 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-29 12:33:03 -0500
commitca2aca19c5500cd6b55f90a8792ba13a4c064ae4 (patch)
tree6de2d9d9b0569866ca3422db0f27c36ab0f64c2e /ext/bg
parentd2ae7364bb969afbaa86fed28c8c756c0a19ab02 (diff)
Upgrade default fieldTemplates to null
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/options.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 7f540a70..1650cea9 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -86,6 +86,13 @@ const profileOptionsVersionUpdates = [
delete options.general.audioSource;
delete options.general.audioVolume;
delete options.general.autoPlayAudio;
+ },
+ (options) => {
+ // Version 12 changes:
+ // The preferred default value of options.anki.fieldTemplates has been changed to null.
+ if (utilStringHashCode(options.anki.fieldTemplates) === 1444379824) {
+ options.anki.fieldTemplates = null;
+ }
}
];