aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackademix <giorgio@maone.net>2018-10-02 23:13:24 +0200
committerhackademix <giorgio@maone.net>2018-10-02 23:13:24 +0200
commiteae399dfd0ade951e9bc87897247bcffffee614f (patch)
tree7e11dbb26dad862b0fc36b72f4fa8b4c27f5cb58
parentffe9a7ab8625aba7a60e21f4c7f2c39081414697 (diff)
Match scripts to weblabels also without query strings.
-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(/\?.*/, ''));
}
}