0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 05:12:57 -05:00
This commit is contained in:
dragongoose 2023-11-04 19:51:21 -04:00
parent b3b121ba31
commit d44e133e10
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5

View file

@ -108,7 +108,7 @@ export function syncUserSettings(settings: Settings): {settings: Settings, chang
} else {
console.log('Settings outdated... Migrating')
// converts v2.4.1 to 241
let settingsVersion = Number(userSettings.version.slice(1, defaultSettings.version.length).split(".").join(""))
const settingsVersion = Number(userSettings.version.slice(1, defaultSettings.version.length).split(".").join(""))
if (settingsVersion < 241) {
oldMigration = true
@ -116,9 +116,9 @@ export function syncUserSettings(settings: Settings): {settings: Settings, chang
}
if (oldMigration) {
let oldSettings: any = userSettings
const oldSettings: any = userSettings
delete oldSettings.version
let migrated: Settings = {
const migrated: Settings = {
version: defaultSettings.version,
settings: {
...oldSettings