minimize exported settings

This commit is contained in:
Henry Jameson 2026-04-05 13:17:36 +03:00
commit 2c6df0887f
2 changed files with 5 additions and 3 deletions

View file

@ -200,6 +200,7 @@ const SettingsModal = {
let sample = config
if (!theme) {
const ignoreList = new Set([
'theme',
'customTheme',
'customThemeSource',
'colors',
@ -207,7 +208,9 @@ const SettingsModal = {
'styleCustomData',
'palette',
'paletteCustomData',
'themeChecksum',
])
sample = Object.fromEntries(
Object.entries(sample).filter(
([key, value]) => !ignoreList.has(key) && value !== undefined,