Skip to content

Commit 790f3e0

Browse files
authored
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 <[email protected]>
1 parent bbf1dfc commit 790f3e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/caddyhttp/fileserver/browse.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,7 @@ <h1>
11761176
</footer>
11771177

11781178
<script {{ $nonceAttribute }}>
1179+
// @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0
11791180
const filterEl = document.getElementById('filter');
11801181
filterEl?.focus({ preventScroll: true });
11811182

@@ -1265,6 +1266,7 @@ <h1>
12651266
}
12661267
var timeList = Array.prototype.slice.call(document.getElementsByTagName("time"));
12671268
timeList.forEach(localizeDatetime);
1269+
// @license-end
12681270
</script>
12691271
</body>
12701272
</html>

0 commit comments

Comments
 (0)