mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 02:53:47 +01:00
BUGFIX: Wrong usage of delete operator in Settings.load (#1791)
This commit is contained in:
parent
596a621c62
commit
45a6ca6b8e
@ -164,8 +164,12 @@ export const Settings = {
|
|||||||
save.styles && Object.assign(Settings.styles, save.styles);
|
save.styles && Object.assign(Settings.styles, save.styles);
|
||||||
save.overview && Object.assign(Settings.overview, save.overview);
|
save.overview && Object.assign(Settings.overview, save.overview);
|
||||||
save.EditorTheme && Object.assign(Settings.EditorTheme, save.EditorTheme);
|
save.EditorTheme && Object.assign(Settings.EditorTheme, save.EditorTheme);
|
||||||
delete save.theme, save.styles, save.overview, save.EditorTheme;
|
Object.assign(Settings, save, {
|
||||||
Object.assign(Settings, save);
|
theme: Settings.theme,
|
||||||
|
styles: Settings.styles,
|
||||||
|
overview: Settings.overview,
|
||||||
|
EditorTheme: Settings.EditorTheme,
|
||||||
|
});
|
||||||
/**
|
/**
|
||||||
* The hostname and port of RFA have not been validated properly, so the save data may contain invalid data. In that
|
* The hostname and port of RFA have not been validated properly, so the save data may contain invalid data. In that
|
||||||
* case, we set them to the default value.
|
* case, we set them to the default value.
|
||||||
|
Loading…
Reference in New Issue
Block a user