mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 08:21:50 +00:00
tui: ignore invalid custom themes to prevent startup crashes (#24645)
This commit is contained in:
parent
c00058ed7a
commit
d54ffbda1c
1 changed files with 2 additions and 1 deletions
|
|
@ -500,7 +500,8 @@ async function getCustomThemes() {
|
|||
symlink: true,
|
||||
})) {
|
||||
const name = path.basename(item, ".json")
|
||||
result[name] = await Filesystem.readJson(item)
|
||||
const theme = await Filesystem.readJson(item)
|
||||
if (isTheme(theme)) result[name] = theme
|
||||
}
|
||||
}
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue