summaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
authorhackademix2019-03-27 23:43:34 +0100
committerhackademix2019-03-27 23:43:34 +0100
commitb9373c65b112342a519cb932fdebfd68a3cd174d (patch)
treec7da79232c02645389ae00d3ddbc59c0919ae0be /src/content
parentd77df5c9e433a2e08f1e66ded36beca5e17deff3 (diff)
parent0878ad2b0a0d3af5db66cc6a4f7d882e17a13365 (diff)
downloadnoscript-b9373c65b112342a519cb932fdebfd68a3cd174d.tar.gz
noscript-b9373c65b112342a519cb932fdebfd68a3cd174d.tar.xz
noscript-b9373c65b112342a519cb932fdebfd68a3cd174d.zip
Merge branch 'chromium' into merge/chromium
Diffstat (limited to 'src/content')
-rw-r--r--src/content/ftp.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/ftp.js b/src/content/ftp.js
index 4b9585e..73ef5e8 100644
--- a/src/content/ftp.js
+++ b/src/content/ftp.js
@@ -9,7 +9,7 @@
) {
return;
}
-
+
gTable = document.getElementsByTagName("table")[0];
gTBody = gTable.tBodies[0];
if (gTBody.rows.length < 2)
@@ -31,7 +31,7 @@
headCells[i].addEventListener("click", rowAction(i), true);
}
if (gUI_showHidden) {
- gRows = Array.slice(gTBody.rows);
+ gRows = Array.from(gTBody.rows);
hiddenObjects = gRows.some(row => row.className == "hidden-object");
}
gTable.setAttribute("order", "");
@@ -60,7 +60,7 @@
}
function orderBy(column) {
if (!gRows)
- gRows = Array.slice(gTBody.rows);
+ gRows = Array.from(gTBody.rows);
var order;
if (gOrderBy == column) {
order = gTable.getAttribute("order") == "asc" ? "desc" : "asc";