diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-11-27 15:16:07 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-11-27 15:16:07 -0500 |
commit | ac562ca36417f2d9fdb860d1f8a879fdccde438d (patch) | |
tree | f0d3efffed3651a42abfb05c5e3ea6f6fd6af7ae /ext/js/data/options-util.js | |
parent | 7aed9a371b0d74c0d75179a08068e8935b76d780 (diff) |
Update types
Diffstat (limited to 'ext/js/data/options-util.js')
-rw-r--r-- | ext/js/data/options-util.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js index e8723f1f..70c1622f 100644 --- a/ext/js/data/options-util.js +++ b/ext/js/data/options-util.js @@ -1144,6 +1144,9 @@ export class OptionsUtil { return options; } + /** + * @type {import('options-util').ModernUpdateFunctionAsync} + */ async _updateVersion21(options) { await this._applyAnkiFieldTemplatesPatch(options, '/data/templates/anki-field-templates-upgrade-v21.handlebars'); @@ -1163,6 +1166,10 @@ export class OptionsUtil { return options; } + /** + * @param {string} url + * @returns {Promise<chrome.tabs.Tab>} + */ _createTab(url) { return new Promise((resolve, reject) => { chrome.tabs.create({url}, (tab) => { |