mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-27 05:51:55 +00:00
channge config.export to only return keys, not areas
This commit is contained in:
parent
81ac31ae25
commit
0e1e89fdec
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue