Skip to content

Commit

Permalink
Load configuration after fetching killer options
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazdikan committed Jan 19, 2025
1 parent ee78414 commit 274ccb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webserver/panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ <h2>Limits</h2>
option.textContent = killer;
killerSelect.appendChild(option);
});

load_config();
})
.catch(() => {
const killerSelect = document.getElementById('killer');
killerSelect.innerHTML = '<option value="">Failed to load killers</option>';

load_config();
});

fetch('/api/stats')
Expand Down

0 comments on commit 274ccb9

Please sign in to comment.