use for..in loop instead of for..of to increase compatibility

This commit is contained in:
Sebastian Sdorra
2019-06-12 14:20:20 +02:00
parent 249ee68986
commit c491092c0c

View File

@@ -93,8 +93,8 @@
var changeAllSelector = document.getElementById('changeAll');
changeAllSelector.onchange = function () {
var strategySelects = document.getElementsByClassName('strategy-select');
for (var strategySelect of strategySelects) {
strategySelect.value = changeAllSelector.value;
for (var index in strategySelects) {
strategySelects[index].value = changeAllSelector.value;
}
};
});