mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-01 19:07:36 +01:00
lint
This commit is contained in:
parent
567fcf8fb6
commit
58c4861c56
@ -89,9 +89,7 @@ export const sanitizeTheme = (theme: IScriptEditorTheme): void => {
|
|||||||
for (const [k, v] of Object.entries(block)) {
|
for (const [k, v] of Object.entries(block)) {
|
||||||
if (typeof v === "object") {
|
if (typeof v === "object") {
|
||||||
repairBlock(v as { [key: string]: string });
|
repairBlock(v as { [key: string]: string });
|
||||||
} else {
|
} else if (!v.match(colorRegExp)) block[k] = "FF0000";
|
||||||
if (!v.match(colorRegExp)) block[k] = "FF0000";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
repairBlock(v);
|
repairBlock(v);
|
||||||
|
Loading…
Reference in New Issue
Block a user