mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 20:43:52 -06:00
fixed bug where loading a config would not refresh rule list
This commit is contained in:
parent
1785a832a6
commit
b1c80d1266
@ -328,6 +328,8 @@
|
|||||||
|
|
||||||
load_button.onchange = () => {
|
load_button.onchange = () => {
|
||||||
let reader = new FileReader();
|
let reader = new FileReader();
|
||||||
|
rules_list.innerHTML = "";
|
||||||
|
modes_list.innerHTML = "";
|
||||||
reader.addEventListener("load", (event) => {
|
reader.addEventListener("load", (event) => {
|
||||||
let vote_rules = JSON.parse(event.target.result);
|
let vote_rules = JSON.parse(event.target.result);
|
||||||
for (let mode of vote_rules.modes)
|
for (let mode of vote_rules.modes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user