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() {
|
getRaceLimit() {
|
||||||
try {
|
return 1;
|
||||||
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;
|
|
||||||
},
|
},
|
||||||
spawnCandidate(url, protocols) {
|
spawnCandidate(url, protocols) {
|
||||||
if (!this.opened) return;
|
if (!this.opened) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user