From 9cdc8eea0064681a35a7ad3d136995659c6b63f5 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Sat, 22 Aug 2020 09:55:57 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=8C=EF=B8=8F=20watch=20colors=20defaul?= =?UTF-8?q?t=20set=20to=20`base`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/round/src/helpers/schema.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/round/src/helpers/schema.ts b/packages/round/src/helpers/schema.ts index 40e0de0d..110e65ec 100644 --- a/packages/round/src/helpers/schema.ts +++ b/packages/round/src/helpers/schema.ts @@ -64,7 +64,9 @@ const generateConfigs = (colorSchemes: ColorSchema, dirPrefix: string) => { if (!watch) throw new Error(""); const { background: b } = watch; content = content.replace(new RegExp(watchKeyColor, "g"), b); // Watch Background - } catch (error) {} + } catch (error) { + content = content.replace(new RegExp(watchKeyColor, "g"), base); // on error=> replace as base + } // Save Schema const cursorPath = path.resolve(schemaSvgsPath, cursor);