aboutsummaryrefslogtreecommitdiff
path: root/bg/ExternalLicenses.js
diff options
context:
space:
mode:
Diffstat (limited to 'bg/ExternalLicenses.js')
-rw-r--r--bg/ExternalLicenses.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/bg/ExternalLicenses.js b/bg/ExternalLicenses.js
index 1196602..01894b1 100644
--- a/bg/ExternalLicenses.js
+++ b/bg/ExternalLicenses.js
@@ -48,6 +48,7 @@ const ExternalLicenses = {
cachedHrefs.delete(tabId);
},
+ // Checks external script using web labels
async check(script) {
const { url, tabId, frameId, documentUrl } = script;
const tabCache = cachedHrefs.get(tabId);
@@ -69,12 +70,6 @@ const ExternalLicenses = {
licensesByLabel.get(uLabel.replace(/^GNU-|-(?:OR-LATER|ONLY)$/, ''));
return license ? [license] : [];
}).flat());
- scriptInfo.toString = () => {
- const licenseIds = [...this.licenses].map(l => l.identifier).sort().join(', ');
- return licenseIds
- ? `Free license${this.licenses.size > 1 ? 's' : ''} (${licenseIds})`
- : 'Unknown license(s)';
- }
scriptInfo.free = scriptInfo.licenses.size > 0;
return scriptInfo;
},