td.country contains countryname itself

master
Sergey 8 years ago committed by GitHub
parent e5c7cecc43
commit 0b59ed88cb

@ -22,7 +22,7 @@ module.exports = function(html) {
element = $(this);
timestamp = element.children(".timestamp").attr("rel");
port = element.children("td:nth-of-type(3)").text().replace(/\n/g, "").trim();
country = element.find("td.country").parent().attr("rel");
country = element.find("td.country").attr("rel");
speed = element.find("td .progress-indicator").eq(0).attr("value");
connectionTime = element.find("td .progress-indicator").eq(1).attr("value");
protocol = element.children("td:nth-of-type(7)").text().replace(/\n/g, "").trim();

Loading…
Cancel
Save