aboutsummaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@gnu.org>2020-03-30 21:34:36 -0400
committerRuben Rodriguez <ruben@gnu.org>2020-03-30 21:34:36 -0400
commitf8d2fdd802b66767d9bc80685ebdac5740bdb8dc (patch)
tree35ec47cbe094463d398bd29ad5709977e333c746 /content
parent525e3a562348813ca11a135cbc640825579af709 (diff)
Fixed Array.map is not a function
Diffstat (limited to 'content')
-rw-r--r--content/externalLicenseChecker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/externalLicenseChecker.js b/content/externalLicenseChecker.js
index 516057e..982ce04 100644
--- a/content/externalLicenseChecker.js
+++ b/content/externalLicenseChecker.js
@@ -42,7 +42,7 @@
}
let link = a => ({ url: a.href, label: a.textContent });
let firstLink = parent => link(parent.querySelector("a"));
- let allLinks = parent => Array.map(parent.querySelectorAll("a"), link);
+ let allLinks = parent => Array.prototype.map.call(parent.querySelectorAll("a"), link);
for (let row of doc.querySelectorAll("table#jslicense-labels1 > tbody > tr")) {
try {
let cols = row.querySelectorAll("td");