From b6e5bf1c869d7d96861c037d3f4adaaab3fde756 Mon Sep 17 00:00:00 2001 From: Stefan Vukovic Date: Wed, 27 Dec 2023 13:43:20 +0100 Subject: [PATCH] add options update function --- ext/js/data/options-util.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js index c219bed3d5..4fe667285a 100644 --- a/ext/js/data/options-util.js +++ b/ext/js/data/options-util.js @@ -1173,6 +1173,18 @@ export class OptionsUtil { return options; } + /** + * @type {import('options-util').ModernUpdateFunctionAsync} + */ + async _updateVersion22(options) { + // Added translation.searchResolution + for (const {options: profileOptions} of options.profiles) { + profileOptions.translation.searchResolution = 'letter'; + } + + return options; + } + /** * @param {string} url * @returns {Promise}