Fix set-extension-commnand for people who installed extension while this command was misspelled

This commit is contained in:
Tamius Han 2022-07-26 01:11:20 +02:00
parent 26df9633b4
commit 207b82cc8b

View File

@ -186,6 +186,17 @@ const ExtensionConfPatch = [
manual: false
}
}
}, {
forVersion: '5.1.3',
updateFn: (userOptions, defaultOptions) => {
for (const actionKey in userOptions.actions) {
for (const cmdKey in userOptions.actions[actionKey].cmd) {
if (userOptions.actions[actionKey].cmd[cmdKey].action === 'set-ExtensionMode') {
userOptions.actions[actionKey].cmd[cmdKey].action = 'set-extension-mode';
}
}
}
}
}
];