diff options
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r-- | ext/bg/js/options.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 464c2116..822f5a16 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -17,6 +17,19 @@ */ +function versionOptions(options) { + const version = options.version || 0; + const fixups = [ + () => {} + ]; + + if (version < fixups.length) { + fixups[version](); + ++options.version; + versionOptions(options); + } +} + function sanitizeOptions(options) { const defaults = { activateOnStartup: true, |