aboutsummaryrefslogtreecommitdiff
path: root/ext/js
diff options
context:
space:
mode:
authorpraschke <stel@comfy.monster>2023-10-17 21:21:30 +0100
committerpraschke <stel@comfy.monster>2023-10-17 21:21:30 +0100
commit0506cfbee5443635ebd6ac79054b85f171775039 (patch)
treee81dad47651dc4f1c605b603a2f0de19547cad13 /ext/js
parentc3be9af7b6f00dad7107fcdae60a8004cc81936a (diff)
initial handlebars patch
Diffstat (limited to 'ext/js')
-rw-r--r--ext/js/data/options-util.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js
index 2674701f..7b050416 100644
--- a/ext/js/data/options-util.js
+++ b/ext/js/data/options-util.js
@@ -470,7 +470,8 @@ class OptionsUtil {
{async: false, update: this._updateVersion17.bind(this)},
{async: false, update: this._updateVersion18.bind(this)},
{async: false, update: this._updateVersion19.bind(this)},
- {async: false, update: this._updateVersion20.bind(this)}
+ {async: false, update: this._updateVersion20.bind(this)},
+ {async: true, update: this._updateVersion21.bind(this)}
];
if (typeof targetVersion === 'number' && targetVersion < result.length) {
result.splice(targetVersion);
@@ -997,4 +998,9 @@ class OptionsUtil {
}
return options;
}
+
+ async _updateVersion21(options) {
+ await this._applyAnkiFieldTemplatesPatch(options, '/data/templates/anki-field-templates-upgrade-v21.handlebars');
+ return options;
+ }
}