chore: remove unnecessary comments and suppress error logging

This commit is contained in:
2026-03-10 23:26:18 +08:00
parent 8d89c2a0f6
commit c0d4bf8b2b
7 changed files with 21 additions and 30 deletions
+4 -4
View File
@@ -66,8 +66,8 @@ export const useSettingsStore = defineStore('settings', () => {
if (data.backgroundImage) backgroundImage.value = data.backgroundImage
if (data.backgroundOpacity) backgroundOpacity.value = data.backgroundOpacity
}
} catch (e) {
console.error('Failed to load settings', e)
} catch {
// Failed to load settings, use defaults
}
}
@@ -86,8 +86,8 @@ export const useSettingsStore = defineStore('settings', () => {
backgroundOpacity: backgroundOpacity.value,
}
localStorage.setItem('llm-in-text-settings', JSON.stringify(data))
} catch (e) {
console.error('Failed to save settings', e)
} catch {
// Failed to save settings
}
}