fileserver: denote license for embedded JavaScript for LibreJS (#7127)

This commit adds support for LibreJS (https://en.wikipedia.org/wiki/GNU_LibreJS).

LibreJS would block this embedded JavaScript because its license is not stated in a machine-readable format.

Signed-off-by: Cédric Félizard <cedric@felizard.fr>
This commit is contained in:
Cédric Félizard 2025-07-16 17:49:49 +00:00 committed by GitHub
parent bbf1dfcea2
commit 790f3e0885
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1176,6 +1176,7 @@ footer {
</footer> </footer>
<script {{ $nonceAttribute }}> <script {{ $nonceAttribute }}>
// @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0
const filterEl = document.getElementById('filter'); const filterEl = document.getElementById('filter');
filterEl?.focus({ preventScroll: true }); filterEl?.focus({ preventScroll: true });
@ -1265,6 +1266,7 @@ footer {
} }
var timeList = Array.prototype.slice.call(document.getElementsByTagName("time")); var timeList = Array.prototype.slice.call(document.getElementsByTagName("time"));
timeList.forEach(localizeDatetime); timeList.forEach(localizeDatetime);
// @license-end
</script> </script>
</body> </body>
</html> </html>