0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 05:12:57 -05:00

Fix languages not updating in stored settings #67

This commit is contained in:
dragongoose 2023-11-04 16:53:25 -04:00
parent ec29d46ef2
commit 947cc56ba4
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5

View file

@ -66,6 +66,9 @@ export function syncUserSettings() {
const synced = { ...defaultSettings, ...parsedUserSettings }
// update avaliable languages
synced.language.options = defaultSettings.language.options
synced.version = import.meta.env.SAFETWITCH_TAG
localStorage.setItem('settings', JSON.stringify(synced))
console.log('Migrated!')