From 5b9d709d4087c7d2b4210319840f6fc7b454d3b1 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 4 Nov 2020 20:39:23 -0500 Subject: Conjugation marker (#988) * Add {conjugation} marker * Add info * Add upgrade * Update test --- ext/bg/js/options.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ext/bg/js/options.js') diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 668be98e..00d4725a 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -477,6 +477,10 @@ class OptionsUtil { { async: false, update: this._updateVersion5.bind(this) + }, + { + async: true, + update: this._updateVersion6.bind(this) } ]; } @@ -604,4 +608,11 @@ class OptionsUtil { } return options; } + + async _updateVersion6(options) { + // Version 6 changes: + // Updated handlebars templates to include "conjugation" definition. + await this._addFieldTemplatesToOptions(options, '/bg/data/anki-field-templates-upgrade-v6.handlebars'); + return options; + } } -- cgit v1.2.3