Changed it

This commit is contained in:
Core 2022-04-14 15:00:51 +01:00
parent 9f4d689f2e
commit 87bb0c425d
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
2 changed files with 4 additions and 4 deletions

View file

@ -158,8 +158,8 @@ export class Store {
}
}
private migrations: any = {
'1.4.3': (store: ElectronStore) => {
if (typeof(store.get('general.discord_rpc')) == 'number') {
'>=1.4.3': (store: ElectronStore) => {
if (typeof(store.get('general.discord_rpc')) == 'number' || typeof(store.get('general.discord_rpc')) == 'string') {
store.set('general.discord_rpc', this.defaults.general.discord_rpc)
}
},