mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2025-03-11 13:41:24 -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 {
|
} else {
|
||||||
console.log('Settings outdated... Migrating')
|
console.log('Settings outdated... Migrating')
|
||||||
// converts v2.4.1 to 241
|
// 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) {
|
if (settingsVersion < 241) {
|
||||||
oldMigration = true
|
oldMigration = true
|
||||||
|
@ -116,9 +116,9 @@ export function syncUserSettings(settings: Settings): {settings: Settings, chang
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oldMigration) {
|
if (oldMigration) {
|
||||||
let oldSettings: any = userSettings
|
const oldSettings: any = userSettings
|
||||||
delete oldSettings.version
|
delete oldSettings.version
|
||||||
let migrated: Settings = {
|
const migrated: Settings = {
|
||||||
version: defaultSettings.version,
|
version: defaultSettings.version,
|
||||||
settings: {
|
settings: {
|
||||||
...oldSettings
|
...oldSettings
|
||||||
|
|
Loading…
Add table
Reference in a new issue