chore: remove unnecessary comments and suppress error logging
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user