fix: should not use Array.at function, use square brackets instead

This commit is contained in:
Quan Luu
2022-09-13 15:18:58 +07:00
parent ca3aa668c6
commit 572fac7963

2
app.js
View File

@@ -99,7 +99,7 @@ srf.on('connect', (err, hp) => {
const newArray = Array.from(set);
let startRegBot = !newArray || newArray.length === 0;
if (!startRegBot) {
const firstSbc = newArray.at(0);
const firstSbc = newArray[0];
const hostports = hp.split(',');
for (const hp of hostports) {
const arr = /^(.*)\/(.*:\d+)$/.exec(hp);