versioning
This commit is contained in:
parent
124a2eb2b7
commit
5c1c894df9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user