diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2020-03-30 21:34:36 -0400 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2020-03-30 21:34:36 -0400 |
commit | f8d2fdd802b66767d9bc80685ebdac5740bdb8dc (patch) | |
tree | 35ec47cbe094463d398bd29ad5709977e333c746 | |
parent | 525e3a562348813ca11a135cbc640825579af709 (diff) |
Fixed Array.map is not a function
-rw-r--r-- | content/externalLicenseChecker.js | 2 | ||||
-rw-r--r-- | html/preferences_panel/pref.js | 4 | ||||
-rw-r--r-- | manifest.json | 2 |
3 files changed, 4 insertions, 4 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"); diff --git a/html/preferences_panel/pref.js b/html/preferences_panel/pref.js index debb468..f8d8fdf 100644 --- a/html/preferences_panel/pref.js +++ b/html/preferences_panel/pref.js @@ -139,7 +139,7 @@ }, async swapSelection(list) { let origin = list === Model.lists.black ? "white" : "black"; - await this.addToList(list, ...Array.map( + await this.addToList(list, ...Array.prototype.map.call( document.querySelectorAll(`select#${origin} option:checked`), option => option.value) ); @@ -189,7 +189,7 @@ async deleteSelection() { for (let id of ["black", "white"]) { let selection = document.querySelectorAll(`select#${id} option:checked`); - await Model.lists[id].remove(...Array.map(selection, option => option.value)); + await Model.lists[id].remove(...Array.prototype.map.call(selection, option => option.value)); } this.populateListUI(); this.syncAll(); diff --git a/manifest.json b/manifest.json index 61c770c..bccb1d7 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "GNU LibreJS", "short_name": "LibreJS", - "version": "7.20.1", + "version": "7.20.2", "author": "various", "description": "Only allows free and/or trivial Javascript to run.", "applications": { |