Upgrade default fieldTemplates to null

This commit is contained in:
toasted-nutbread 2019-12-15 00:07:54 -05:00
parent d2ae7364bb
commit ca2aca19c5

View File

@ -86,6 +86,13 @@ const profileOptionsVersionUpdates = [
delete options.general.audioSource; delete options.general.audioSource;
delete options.general.audioVolume; delete options.general.audioVolume;
delete options.general.autoPlayAudio; 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;
}
} }
]; ];