fix: retrieve config version before migration

This commit is contained in:
EnixCoda 2020-04-04 11:03:41 +08:00
parent 07c43b2458
commit c8bd55de53
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -56,6 +56,7 @@ type Storage = {
async function migrateConfig() {
// not referencing to enum above to prevent migrate future configs
const config = await storageHelper.get<Config | Storage>([
'configVersion',
'sideBarWidth',
'shortcut',
'access_token',