fix: guard against page-navigation race + deprecation warning

- playerInfo refresh() now early-returns if DOM elements are gone
  (happens when navigating away while getPlayers RCON is in flight)
- swiched donutLabelsOutside(false) → labelsOutside(false) to
  silence NVD3 deprecation warning

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-06-13 18:56:51 +02:00
co-authored by Copilot
parent e2e766378b
commit aa9bd725aa
2 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ function ServerInfoPage(params, container) {
.y(function (d) { return d.y; })
.showLabels(true)
.donut(true)
.donutLabelsOutside(false)
.labelsOutside(false)
.duration(500)
.height(250)
.color(['#a78bfa', '#7c3aed', '#e879f9', '#2d1f3d'])