generated from incremental-social/The-Modding-Tree
As it turns out, you don't need to have the themes
array, you can get it from Object.keys(colors)
This commit is contained in:
parent
436505af2d
commit
225af74c76
2 changed files with 5 additions and 7 deletions
js/utils
|
@ -222,7 +222,7 @@ function loadOptions() {
|
|||
options = Object.assign(getStartOptions(), JSON.parse(decodeURIComponent(escape(atob(get2)))));
|
||||
else
|
||||
options = getStartOptions()
|
||||
if (themes.indexOf(options.theme) < 0) theme = "default"
|
||||
if (Object.keys(colors).indexOf(options.theme) < 0) theme = "default"
|
||||
fixData(options, getStartOptions())
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue