Refactor getRaceLimit method in MultiChatDialog: Simplify logic by returning a fixed value of 1, ensuring consistent race limit handling.

This commit is contained in:
Torsten Schulz (local)
2026-03-04 22:53:39 +01:00
parent 1bccee3429
commit 6d4ada7b31

View File

@@ -599,12 +599,7 @@ export default {
});
},
getRaceLimit() {
try {
const ls = localStorage.getItem('chatWsRaceMax');
const n = parseInt(ls, 10);
if (!isNaN(n) && n > 0) return Math.min(n, 6);
} catch (_) { }
return this.raceLimit || 1;
return 1;
},
spawnCandidate(url, protocols) {
if (!this.opened) return;