mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 21:40:03 +00:00
ignore Hyper theme errors
This commit is contained in:
parent
181f3e3d33
commit
4a76c12f15
@ -16,7 +16,13 @@ export class HyperColorSchemes extends TerminalColorSchemeProvider {
|
|||||||
try {
|
try {
|
||||||
let module = (global as any).require(path.join(pluginsPath, plugin))
|
let module = (global as any).require(path.join(pluginsPath, plugin))
|
||||||
if (module.decorateConfig) {
|
if (module.decorateConfig) {
|
||||||
let config = module.decorateConfig({})
|
let config: any
|
||||||
|
try {
|
||||||
|
config = module.decorateConfig({})
|
||||||
|
} catch (error) {
|
||||||
|
console.warn('Could not load Hyper theme:', plugin)
|
||||||
|
return
|
||||||
|
}
|
||||||
if (config.colors) {
|
if (config.colors) {
|
||||||
themes.push({
|
themes.push({
|
||||||
name: plugin,
|
name: plugin,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user