mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-22 05:12:57 -05:00
lint
This commit is contained in:
parent
b3b121ba31
commit
d44e133e10
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue