aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-11 19:55:51 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-11 19:55:51 -0800
commit5c1c894df936fde38a351c8c7db6a6e323f4331c (patch)
tree46ff4ea25e704e56f366dcf78970739d49791429 /ext/bg
parent124a2eb2b725c9f997dbb850c12e5a1a77f95195 (diff)
versioning
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/options.js13
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,