Fix LibreJS license detection

This commit is contained in:
Cadence Ember 2020-08-08 15:00:26 +12:00
parent ef0870d0eb
commit ed03a0674e
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><title>JavaScript licenses - Invidious</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" type="text/css" href="/static/css/main.css?static=dfaa1273d6"></head><body><header class="banner"><div class="logo"></div><h1>Invidious</h1></header><div class="js-license-table"><table id="jslicense-labels1"><thead><tr><th scope="col">File</th><th scope="col">License</th><th scope="col">Source</th></tr></thead><tbody><tr><td><a href="/static/js/main.min.js?static=6042f428fc">/static/js/main.min.js?static=6042f428fc</a></td><td><a href="https://www.gnu.org/licenses/agpl-3.0.html">GNU-AGPL-3.0-or-later</a></td><td><a href="/static/js/main.js">/static/js/main.js</a></td></tr></tbody></table></div><footer><ul class="footer-link-list"><li><a href="/">Home</a></li><li><a href="/js-licenses.html" data-jslicense="1">JavaScript licenses</a></li></ul></footer></body></html>
<!DOCTYPE html><html lang="en"><head><title>JavaScript licenses - Invidious</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" type="text/css" href="/static/css/main.css?static=dfaa1273d6"></head><body><header class="banner"><div class="logo"></div><h1>Invidious</h1></header><div class="js-license-table"><table id="jslicense-labels1"><thead><tr><th scope="col">File</th><th scope="col">License</th><th scope="col">Source</th></tr></thead><tbody><tr><td><a href="/static/js/main.min.js">/static/js/main.min.js</a></td><td><a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU-AGPL-3.0-or-later</a></td><td><a href="/static/js/main.js">/static/js/main.js</a></td></tr></tbody></table></div><footer><ul class="footer-link-list"><li><a href="/">Home</a></li><li><a href="/js-licenses.html" data-jslicense="1">JavaScript licenses</a></li></ul></footer></body></html>

View File

@ -105,9 +105,9 @@ async function addBabel(sourcePath, targetPath) {
static.set(sourcePath, minFilenameWithQuery)
scripts.push({
original: targetPath,
minified: minFilenameWithQuery,
minified: minFilename,
license: "GNU-AGPL-3.0-or-later",
licenseHref: "https://www.gnu.org/licenses/agpl-3.0.html"
licenseHref: "http://www.gnu.org/licenses/agpl-3.0.html"
})
await Promise.all([