Browse Source

try catch

master
zeus 4 years ago
parent
commit
88b1b4f660
  1. 5
      llo/connect-new.js

5
llo/connect-new.js

@ -1414,7 +1414,12 @@ function mywgRemoveClosedConnection(){
n.data = n.data.replace(/(\r\n|\n|\r|\t)/g,""); n.data = n.data.replace(/(\r\n|\n|\r|\t)/g,"");
//console.log(n); //console.log(n);
//console.log(n.data); //console.log(n.data);
try {
var interfaces = JSON.parse(n.data); var interfaces = JSON.parse(n.data);
} catch (err) {
console.error(err);
}
var datalenth = interfaces.length var datalenth = interfaces.length
// interfaces found with connection=yes or no // interfaces found with connection=yes or no
for (var i=0 ; i < datalenth ; i++) for (var i=0 ; i < datalenth ; i++)

Loading…
Cancel
Save