fix crash on front page when acqing items.
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-08-10 21:02:03 +02:00
parent 0d2e027816
commit 3737a80c46
@@ -67,6 +67,11 @@
// Mark it non-segmented if the target is too high. This prevents a clunky progress bar,
// or a browser freeze if you set the target very high.
nonSegmented = alwaysSmooth || (target >= 60);
if (!nonSegmented) {
ons = Math.round(ons);
offs = Math.round(offs);
}
} else {
offClass = "none";
nonSegmented = alwaysSmooth;