diff options
Diffstat (limited to 'ext/js/data')
| -rw-r--r-- | ext/js/data/options-util.js | 17 | 
1 files changed, 16 insertions, 1 deletions
| diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js index 312c6efc..1644df2f 100644 --- a/ext/js/data/options-util.js +++ b/ext/js/data/options-util.js @@ -521,7 +521,8 @@ export class OptionsUtil {              this._updateVersion21,              this._updateVersion22,              this._updateVersion23, -            this._updateVersion24 +            this._updateVersion24, +            this._updateVersion25          ];          /* eslint-enable @typescript-eslint/unbound-method */          if (typeof targetVersion === 'number' && targetVersion < result.length) { @@ -1140,6 +1141,20 @@ export class OptionsUtil {      }      /** +     * - Change 'viewNote' action to 'viewNotes'. +     * @type {import('options-util').UpdateFunction} +     */ +    async _updateVersion25(options) { +        for (const profile of options.profiles) { +            for (const hotkey of profile.options.inputs.hotkeys) { +                if (hotkey.action === 'viewNote') { +                    hotkey.action = 'viewNotes'; +                } +            } +        } +    } + +    /**       * @param {string} url       * @returns {Promise<chrome.tabs.Tab>}       */ |