1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-23 21:34:13 +03:00

ignore Hyper theme errors

This commit is contained in:
Eugene Pankov 2018-01-19 15:53:14 +01:00
parent 181f3e3d33
commit 4a76c12f15
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -16,7 +16,13 @@ export class HyperColorSchemes extends TerminalColorSchemeProvider {
try {
let module = (global as any).require(path.join(pluginsPath, plugin))
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) {
themes.push({
name: plugin,