diff options
author | hackademix <giorgio@maone.net> | 2018-10-02 23:13:24 +0200 |
---|---|---|
committer | hackademix <giorgio@maone.net> | 2018-10-02 23:13:24 +0200 |
commit | eae399dfd0ade951e9bc87897247bcffffee614f (patch) | |
tree | 7e11dbb26dad862b0fc36b72f4fa8b4c27f5cb58 /content/externalLicenseChecker.js | |
parent | ffe9a7ab8625aba7a60e21f4c7f2c39081414697 (diff) |
Match scripts to weblabels also without query strings.
Diffstat (limited to 'content/externalLicenseChecker.js')
-rw-r--r-- | content/externalLicenseChecker.js | 2 |
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(/\?.*/, '')); } } |