diff options
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r-- | ext/bg/js/options.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 5c68e77c..16168e38 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -485,6 +485,10 @@ class OptionsUtil { { async: false, update: this._updateVersion7.bind(this) + }, + { + async: false, + update: this._updateVersion8.bind(this) } ]; } @@ -675,4 +679,16 @@ class OptionsUtil { } return options; } + + _updateVersion8(options) { + // Version 8 changes: + // Added translation.textReplacements. + for (const profile of options.profiles) { + profile.options.translation.textReplacements = { + searchOriginal: true, + groups: [] + }; + } + return options; + } } |