diff options
-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": { |