⚡ Simplified option load (for now)
This commit is contained in:
parent
23e4855b28
commit
5c4d26b548
1 changed files with 1 additions and 2 deletions
|
@ -37,8 +37,7 @@ export default function Pattern(config = false) {
|
||||||
for (let i in config.options) {
|
for (let i in config.options) {
|
||||||
let option = config.options[i];
|
let option = config.options[i];
|
||||||
if (typeof option === "object") {
|
if (typeof option === "object") {
|
||||||
if (typeof option.type === "undefined")
|
this.options[i] = option.val / 100;
|
||||||
this.options[i] = option.val / 100;
|
|
||||||
} else if (typeof option === "number") {
|
} else if (typeof option === "number") {
|
||||||
this.options[i] = option;
|
this.options[i] = option;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue