channge config.export to only return keys, not areas

This commit is contained in:
Send_Nukez 2021-11-10 01:54:26 +01:00
parent 81ac31ae25
commit 0e1e89fdec

View file

@ -425,8 +425,7 @@ export default class ConfigMenu {
const obj = {}; const obj = {};
Object.entries(this.#config).forEach(([key, val]) => { Object.entries(this.#config).forEach(([key, val]) => {
if (IGNORED_TYPES.includes(val.type)) return; if (IGNORED_TYPES.includes(val.type)) return;
if (!obj.hasOwnProperty(val.area.name)) obj[val.area.name] = {}; obj[key] = this.get(key);
obj[val.area.name][key] = this.get(key);
}); });
return obj; return obj;