fix old github download repos

This commit is contained in:
tdurieux
2026-05-06 19:37:16 +03:00
parent da78708b7b
commit 67cb2538b1
6 changed files with 154 additions and 22 deletions
+7
View File
@@ -15,6 +15,13 @@ function saveFilterPrefs(key, value) {
}
}
function encodePathForUrl(path) {
return String(path || "")
.split("/")
.map((segment) => encodeURIComponent(segment))
.join("/");
}
function humanFileSize(bytes, si = false, dp = 1) {
const thresh = si ? 1000 : 1024;