Refactor getRaceLimit method in MultiChatDialog: Simplify logic by returning a fixed value of 1, ensuring consistent race limit handling.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user