aboutsummaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@gnu.org>2018-10-03 22:23:39 +0000
committerRuben Rodriguez <ruben@gnu.org>2018-10-03 22:23:39 +0000
commit5461a48cbeac01d5f8bc31a10d11ff72a295c7d9 (patch)
tree3a6b571ac604ed2208f2a9b492de669e59d2f48f /content
parentf881f1dbcd8c76685256f3701f25f916abda3e30 (diff)
parenteae399dfd0ade951e9bc87897247bcffffee614f (diff)
Merge #24 `Lenient WebLabels matching (by URL, by id, by name).`
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 181e3f9..516057e 100644
--- a/content/externalLicenseChecker.js
+++ b/content/externalLicenseChecker.js
@@ -79,7 +79,7 @@
async checkLicensedScript(m) {
let {url, cache} = m;
if (!licensedScripts) licensedScripts = await fetchLicenseInfo(cache);
- return licensedScripts.get(url);
+ return licensedScripts.get(url) || licensedScripts.get(url.replace(/\?.*/, ''));
}
}