mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
fix setTheme
This commit is contained in:
parent
f916007f2d
commit
f16a4f1a4e
@ -28,7 +28,6 @@ export function NetscriptUserInterface(): InternalAPI<IUserInterface> {
|
||||
const hex = /^(#)((?:[A-Fa-f0-9]{2}){3,4}|(?:[A-Fa-f0-9]{3}))$/;
|
||||
const currentTheme = { ...Settings.theme };
|
||||
const errors: string[] = [];
|
||||
if (typeof newTheme !== "object")
|
||||
for (const key of Object.keys(newTheme)) {
|
||||
if (!currentTheme[key]) {
|
||||
// Invalid key
|
||||
|
Loading…
Reference in New Issue
Block a user