Fix exception when setting theme

Fixes #1079
This commit is contained in:
Daniel Imms
2017-10-25 21:24:44 -07:00
parent d3b25364cc
commit 2fc723b3ac
+3
View File
@@ -109,6 +109,9 @@ export class ColorManager implements IColorManager {
}
private _validateColor(color: string, fallback: string): string {
if (!color) {
return fallback;
}
if (color.length === 7 && color.charAt(0) === '#') {
return color;
}